Search Results

Search: Posts Made By: wolfv
1,664
Posted By vgersh99
loose "-s or use ${HOME} instead of ~
loose "-s or use ${HOME} instead of ~
2,529
Posted By MadeInGermany
After -prune there must be -o (or, otherwise) in...
After -prune there must be -o (or, otherwise) in order to continue with files or non-pruned directories. Then if not a directory and name ends with pdf and name does not have _nobackup then print....
14,310
Posted By RudiC
What if you run ../tut0/load.sh without test?...
What if you run ../tut0/load.sh without test? And, how about setting bash's xtrace option?
14,310
Posted By RudiC
For debug purposes, you might want to pwd in each...
For debug purposes, you might want to pwd in each and every script, and also ls the relevant paths/scripts.
14,310
Posted By rovf
In your modified example, I don't see that you...
In your modified example, I don't see that you would execute load.sh anywhere. What effect would you like to see? Please provide a complete transscript, showing what you are doing.
14,310
Posted By Scrutinizer
Try: if ./load.sh ; then echo "0" else ...
Try:
if ./load.sh ; then
echo "0"
else
echo "1"
fi

--
See test: operands (http://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html#tag_20_128_05)
string
True if the...
14,310
Posted By Don Cragun
The bash shell script: #!/bin/bash return...
The bash shell script:
#!/bin/bash

return main
does not make any attempt to run the utility named main. And, as jim mcnamara already said, you don't use return to exit from a bash shell script....
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 05:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy