Help for this page

Select Code to Download


  1. or download this
       # ... stuff run every time this script is invoked
       if [ "$checkvar" != "foo" ]; then
    ...
       else
         # ... stuff to do after the script has run
       fi
    
  2. or download this
      $ENV{checkvar}="foo";
      exec "sh", "/usr/script/myshell.sh" # or, if you're logging in
      exec "sh", "-l"