The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 and shell scripting languages 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 11:32 AM
How to check path exist or not in UNIX shell script suneelc UNIX for Dummies Questions & Answers 3 01-22-2008 08:36 AM
Check EOF in shell script ideazhcy Shell Programming and Scripting 8 07-20-2007 03:29 PM
check my first shell script gridview Shell Programming and Scripting 2 05-14-2007 03:34 PM
Can run script Manually, but not through Cron? MadHatter Shell Programming and Scripting 4 10-19-2005 10:08 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-16-2006
adi_bang76 adi_bang76 is offline
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 10:28 AM..
  #2 (permalink)  
Old 11-16-2006
jim mcnamara jim mcnamara is online now Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,710
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.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:03 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0