how to do it


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers how to do it
# 1  
Old 05-11-2007
how to do it

I need to get the value /usr/ucb/ps -aux | head command every 10 min. and it's saved to file log_(date)(time) by I need it run this command when 18:00 until 18:00 of the next day. For example

log_2_18:00 #this log is saved when 18:00 of the first date until 18:00 of the second
log_3_18:00 #this log is saved when 18:00 of the second date until 18:00 of the third
# 2  
Old 05-11-2007
Schedule the command to run through cron every 10 minutes, starting at 18:01. Schedule another job that creates the backup file to run once a day at 18:00 hrs.
# 3  
Old 05-12-2007
thank u for ur suggestion
# 4  
Old 05-12-2007
just a suggestion, i don't know what version of unix you are running but there are some pretty handy performance monitors out there - i.e. on our AIX system i run nmon out to a file which i then use excel to parse the data out into graph/spreadsheet format.

otherwise, you can just put your command into an infinite loop with a sleep statement and have a cron job copy the output file to a date stamped file
 
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question