Single-run scripts - how to

paolo07

ADSM.ORG Member
Joined
Sep 6, 2007
Messages
2
Reaction score
0
Points
0
PREDATAR Control23

Hello,
I have made a ksh script for SOlaris 10 and I'd like -for security purpouses- to allow a guy to run it for ONLY 1 time.
Do anyone know HOW TO MAKE THIS and if this is possible somehow?

Thanks,
Paolo
 
PREDATAR Control23

Hello,
I have made a ksh script for SOlaris 10 and I'd like -for security purpouses- to allow a guy to run it for ONLY 1 time.
Do anyone know HOW TO MAKE THIS and if this is possible somehow?

Thanks,
Paolo


why not use an AT statement to run the job??

otherwise you can add a chmod to the script.

even a

chmod 400 `basename $0`

will change the perms on the current file to be readable only by the owner.
 
Top