![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| determine if the script has been invoked manually or not? | hitmansilentass | Shell Programming and Scripting | 8 | 06-22-2008 08:32 AM |
| How to check path exist or not in UNIX shell script | suneelc | UNIX for Dummies Questions & Answers | 3 | 01-22-2008 04:36 AM |
| Check EOF in shell script | ideazhcy | Shell Programming and Scripting | 8 | 07-20-2007 12:29 PM |
| check my first shell script | gridview | Shell Programming and Scripting | 2 | 05-14-2007 12:34 PM |
| Can run script Manually, but not through Cron? | MadHatter | Shell Programming and Scripting | 4 | 10-19-2005 07:08 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
check in unix shell script so that no one is able to run the script manually
I want to create an automated script which is called by another maually executed script.
The condition is that the no one should be able to manually execute the automated script. The automated script can be on the same machine or it can be on a remote machine. Can any one suggest a check in the automated script so that all the above conditions are met ? Thanks in advance, Adi Last edited by adi_bang76; 11-16-2006 at 06:28 AM. |
| Forum Sponsor | ||
|
|
|
|||
|
Have the first script create a known filespec file - ie., a specific file only the user running the process can open and delete.
The automated script checks for the existence of the known file when the known file is not found - stop. when the file is found, delete the file, then run the script. |
|||
| Google UNIX.COM |