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

Question about the "top" command line when using cron perl scripts

Status
Not open for further replies.

kungphu

Programmer
Joined
May 23, 2006
Messages
13
Location
GB
Hi,

How do I get top to display the name of the file being interpreted rather than it just dislpaying perl under the command field?

The cron files are making system calls to perl
Code:
system perl somefile.pl
or
Code:
./somefile.pl
 
I'm not sure what you're looking for here, can you be more descriptive? Where is there a command field under a crontab entry?

$0 (zero) displays the calling scripts name IIRC

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Hi paul, the command field does not relate to the crontab entry, if you run top from the command line on fedora, it shows what processeses are running.

Thanks for that Tony, I can now see which scripts are being called and how they are being called
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top