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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

See what script executes a specific command

Status
Not open for further replies.

piet83

Technical User
Oct 21, 2008
7
GB
On our systems are many scripts that execute rsh or ftp commands. I would like to log what script calls rsh or ftp. I've tried to catch it with $$ and $0 at the moment a script starts but they only return the PID from ksh and the last run command which is rsh or ftp.

Is there someone who has an tip or solution?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top