(no subject)

From: Bill Thompson (bill.thompson_at_GOODYEAR.COM)
Date: 11/20/03

  • Next message: Bob.Kelley_at_BRINKSINC.COM: "Re: concurrent volume groups"
    Date:         Thu, 20 Nov 2003 15:57:54 -0500
    To: aix-l@Princeton.EDU
    
    

    Shawn,

    One way to accomplish this is to have a script call itself using a special
    command line parameter.

    example:

    - - - - - snip - - - - -
    #!/bin/sh

    COMMAND="$(basename $0)"
    CMD_DIR="$(dirname $0)"; [[ $CMD_DIR = . ]] && CMD_DIR="$(pwd)"

    function Run_Me {

        <your real code goes here>

    }

    if [[ "$1" = "__RUN_ME__" ]]; then

        shift

        Run_Me

        exit 0

    else

        ${CMD_DIR}/${COMMAND} __RUN_ME__ $@ &

    fi
    - - - - - snip - - - - -

    The prompt will return however it will not be listed in the output of
    "jobs"

    A simple test of the above is to replace "<your real code goes here>" with
    "sleep 600"

    Bill Thompson
    Sr UNIX Systems Administrator
    The Goodyear Tire & Rubber Co.

    Contains Confidential and/or Proprietary Information
    May Not Be Copied or Disseminated Without Express Consent of The Goodyear
    Tire & Rubber Company.

    AIX-L Archives: http://marc.theaimsgroup.com/?l=aix-l&r=1&w=2

    ----- Original Message -----
    From: "Shawn Bierman" <BiermanS@METHODISTHEALTH.ORG>
    Newsgroups: bit.listserv.aix-l
    To: <aix-l@Princeton.EDU>
    Sent: Thursday, November 20, 2003 2:17 PM
    Subject: script backgrounds itself

    > Is it possible to run a script that will background itself without me
    manually appending "&" or prepending "at now"?
    >
    > so something like:
    >
    > #> ./myjob
    > [1] +Running myjob &
    > #> jobs
    > [1] +Running myjob &
    > #>
    >
    > And the prompt returns but the job still runs.
    >
    > -shawn


  • Next message: Bob.Kelley_at_BRINKSINC.COM: "Re: concurrent volume groups"

    Relevant Pages

    • Re: Netcat question
      ... Also, I apologize since I think you might have provided this already, but can we see the virtual device script? ... Maybe a quick & dirty hack fix is to have the virtual device script always append something unobtrusive to the collected print data for no other reason than to garuntee that the print jobs are always at least a few bytes. ... It uses a cheap-o single port print server that snaps onto the centronics plug just like that netgear ps101. ...
      (comp.unix.sco.misc)
    • Re: Netcat question
      ... If you write the virtual device script to simply throw out all output from ... than to garuntee that the print jobs are always at least a few bytes. ... It uses a cheap-o single port print server that snaps onto the centronics ...
      (comp.unix.sco.misc)
    • Re: Biztalk 2006 with SQL-Express - Gert
      ... This is the link for the list of BizTalk 2006 Maintenance Jobs ... Below I provide the details of the execution script with the interval. ... Interval: 1 Minute / Recurring ...
      (microsoft.public.biztalk.general)
    • Re: Plattform independent queuing of computations
      ... The idea ist to put the computation jobs into a database which is read ... The external task uses the database as a queue ... website the socket will be closed when the script is finished and the ... And if the rest of the code doesn't have problems with loops, you can set the execution time longer and memory larger. ...
      (comp.lang.php)
    • Re: prevent users from running system statistic tools
      ... > routines to see how their jobs were running. ... > I considered a script that would issue a talk command to the user. ... Have your manager have a chat with their ...
      (comp.unix.solaris)