in reply to Re: running shell script in cron
in thread running shell script in cron

im trying to run the script in background and that s why im using '&'...... am i doin something wrong here??

Replies are listed 'Best First'.
Re^3: running shell script in cron
by rovf (Priest) on Mar 25, 2009 at 08:33 UTC

    I was thinking that using & inside backquotes wouldn't work (and it doesn't make much sense since the caller would have to wait for the completion anyway). I tried it on Cygwin Perl, and at least it works here (using bash for shelling out). I don't know whether this is supposed to work in general.

    Another strange thing in your code is that you have
    cd $sc `...`
    So provided your backquoted string substitutes to blablabla, you would have something like
    cd $sc blablabla
    What is this supposed to do?

    -- 
    Ronald Fischer <ynnor@mm.st>