unix job control

Posted on 2011-10-05
Medium Priority
Last Modified: 2013-11-22
Trying to find what command in unix we can fins the completed jobs for example a week before or all jobs completed week before.

1) Job history which is already completed. Not with logs or autosys/cron logs.
Unix system command or syatem logs of job history which already completed?

2) FTP jobs currently running ; other than ps -ef | grep ftp?
Question by:pal2k
LVL 68

Accepted Solution

woolmilkporc earned 400 total points
ID: 36922848
1) No way with pure Unix. Consider enabling system and process accounting. Here is more:


2) Try last ftp

Running sessions will show up as "Still logged in"


System accounting will help here too (for completed jobs).


LVL 20

Assisted Solution

Gns earned 400 total points
ID: 36923103
Woolmilkpork is quite correct... But cron jobs/at-jobs do leave another mark, provided they actually have output... It'll be sent as an email to the user who scheduled the job.
But job history, sort of... Nope.

-- Glenn

Assisted Solution

svs earned 400 total points
ID: 36972855
ftpwho command may be available (it exists in proftpd, at least)
LVL 62

Assisted Solution

gheist earned 800 total points
ID: 37001763
job control is something else from what you are asking for.

in UNIX job control is shell facility like using &, running fg or bg commands, ^Z etc - i.e running background jobs under control of shell.
on a mainframe it is something else, better known as spool in UNIX

To have proper control of "jobs" you need to maintain your own logging.
I.e when job starts you call
logger "!JOB!START! of type $* running as a PID $?"

when it ends
logger "!JOB!SUCCESS! ...

or it fails


1) depends of your definition of what a "JOB" is.

I would propose to finally enable process accounting ("man accton" on your system, or give us uname -a to figure out)

2) a drop of sarcasm

ps auxwww | grep ftp
ig it happens to be Linux "ps -C ftp"
LVL 62

Assisted Solution

gheist earned 800 total points
ID: 37001772
PS in 99% of FTP ssenarios rsync or rbackup are better and safer options.

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses
Course of the Month15 days, 20 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question