unix job control

Posted on 2011-10-05
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

    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

    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
    LVL 9

    Assisted Solution

    ftpwho command may be available (it exists in proftpd, at least)
    LVL 61

    Assisted Solution

    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 61

    Assisted Solution

    PS in 99% of FTP ssenarios rsync or rbackup are better and safer options.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. Please see for the updated article. It is avail…
    Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
    In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
    This tutorial goes over how to archive and restore FreeBSD jails that are managed by ezjail.

    760 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

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now