Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: tof
  • Order by date
  1. tof

    How do I create/find a user options menu

    Do you try this ? if [ $COUNTER -gt 29 ] I don't see the "done" of the first while. Is it normal ?
  2. tof

    ERRNO

    So, the only solution is to export a variable before calling a script. Thanks grega,MikeLacey
  3. tof

    ERRNO

    It is exact ERRNO is set to 25 at the begin of test.sh. But, is it normal ? and there is a solution if i don't want ERRNO set to 25 ?
  4. tof

    ERRNO

    Hello, i am agree with you MikeLacey, the only solution i find is to put ERRNO in an exporting variable and use it in the other script. But i don't understand why, when i call the script /tmp/essai.sh, ERRNO is already in 25.
  5. tof

    Sed Question

    A solution is : cat file | sed '/.*'$ItemNum'.*/d' > file
  6. tof

    ERRNO

    In fact, i want the last system error (in the script it is 2 because file.txt does not exist), and i want use it in a second script (/tmp/essai.sh). But, in the second script, it is automatically 25. Thanks.
  7. tof

    ERRNO

    Hello, i have a little problem with the ERRNO variable. I am create this script ( named test.sh ) : #!/bin/ksh export ERRNO=0 echo "\$ERRNO : $ERRNO" rm -f /tmp/file.txt echo "\$ERRNO : $ERRNO" . /tmp/essai.sh ( The /tmp/file.txt does not exist ) And in /tmp/essai.sh ...

Part and Inventory Search

Back
Top