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

Search results for query: *

  1. RiffRaff100

    help with Shell script - process running for more than 24 hrs.

    You could use the "elapsed" time info from ps. ps -C rsyslogd -o etime will show you the "elapsed" time from the process with the name "rsyslogd" (Dont use ps together with "grep" - there is no need to do this and will often result in errors/failures - specially when there are kill-commands...
  2. RiffRaff100

    How can I get the date from the past 30 days?

    With a loop you could do: for i in {30..0} ; do date +%D -d "$i days ago"; done

Part and Inventory Search

Back
Top