Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Single-run ksh script -How to make it?

Status
Not open for further replies.

paolo07

Technical User
Sep 7, 2007
12
EU
Hello,
I have made a ksh script for Solaris 10 OS. Now, for security purpouses, it's required to make it in order to allow the user to run it ONLY 1 TIME, afterwards -like a license- it will expire and nothing can be done with it.

Is there a way/command that let me to do that?

Thanks,
Paolo
 
Forck an rm which will delete your script after usage
 
Yes, thanks. I've already had this idea, that of course can be good.
The topic is slightly different: I mean, I want to make this script secure, since I want to release it only to some guys (let's say a licensed script)
Is there a way to crypt the script and to make it decrypt+run+delete in all-in-one command/routine?

I ask IF this is possible.
paolo
 
You can use the crypt utility to encrypt your shell script
and then give them another shell script to decrypt the encrypted script, run the script and delete the script and encrypted script. man crypt(1) for more info.

As an aside here is a pointer to another way of doing it:

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top