Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2002
    Location
    UK
    Posts
    163

  2. #2
    Join Date
    Jun 2001
    Location
    Earth
    Posts
    1,258
    Well it really depends on what shell the script is coded in, but I believe you want:

    Code:
    if [ $? -eq 0 ]; then
    $? is the return code from the last executed program. You don't need/want quotes around it.

    Frank
    Umbra Hosting
    cPanel | Softaculous | CloudLinux | R1Soft | Ksplice
    Web Hosting, Reseller Hosting, VPS, Dedicated Servers, Colocation
    UmbraHosting.com

  3. #3
    Join Date
    Aug 2002
    Location
    UK
    Posts
    163

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •