Thread: VTOM Job

  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Rep Power

    VTOM Job

    I ran a script and it executed fine, but return with error status "-2".
    Can anyhelp what error does -2 represents.
    Thanks !
  2. #2
  3. Contributing User
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2006
    Rep Power
    The script terminated with either an explicit exit -2 command, or the last command to execute before script completion resulted in an exit code of -2. Most *nix commands use positive exit codes (I was not even aware they could be negative as I had never really needed to care) so I would guess it's an explicit thing done for an express reason. You'd need to look at the script - it may be in clear text as exit -2 or 'obfuscated' by using a variable: exit $RC where the RC variable is given a value of -2 somewhere.
    The moon on the one hand, the dawn on the other:
    The moon is my sister, the dawn is my brother.
    The moon on my left and the dawn on my right.
    My brother, good morning: my sister, good night.
    -- Hilaire Belloc

IMN logo majestic logo threadwatch logo seochat tools logo