Commands in background in a script

Hi,

I was writing a script for backup,however i stumbled upon this.( As i mentioned in my earlier posts iam a beginner in shell scripting).

Here is a piece of code

case $DB_STAT in

OFFLINE\)

    echo "Service $SID currently $DB_STAT"

    /usr/local/bkps/flash_filesystems $SAVE $SID 2> $LOGF

;;

so here iam tring to run the command /usr/local/bkps/flash_filesystems $SAVE $SID in background and the value of $SAVE is a command (savefs).

i tried

(( /usr/local/bkps/flash_filesystems $SAVE $SID)) & 2>$LOGF
tried with ()

is there any way where in i can run it in background with in the script

When you post code, please wrap it in

 tags.



case $DB_STAT in

    OFFLINE)

        echo "Service $SID currently $DB_STAT"

        /usr/local/bkps/flash_filesystems $SAVE $SID 2> $LOGF
        

 ;;

so here iam tring to run the command /usr/local/bkps/flash_filesystems $SAVE $SID in background and the value of $SAVE is a command (savefs).

i tried

(( /usr/local/bkps/flash_filesystems $SAVE $SID)) & 2>$LOGF
tried with ()

is there any way where in i can run it in background with in the script
[/quote]

[indent]

/usr/local/bkps/flash_filesystems "$SAVE" "$SID" 2>$LOGF &