The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
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 05: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

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 11-16-2006
Registered User
 

Join Date: Nov 2006
Posts: 1
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 07:28 AM.
Reply With Quote
Forum Sponsor
  #2  
Old 11-16-2006
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,261
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.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:04 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0