Still on a break with limited internet access but my 'ways are now changed'... ;o)
Well using the return method suits me fine.
I had no idea that this bug was near decades old and I was _exploiting_ it.
Thanks for pointing me in the right direction.
Here is a slightly simplified version of yours using dash as the prime mover.
OSX 10.12.5, default bash terminal calling 'dash' from the script...
I still get my variables where I want them so I am a happy bunny...
Thank you.
This User Gave Thanks to wisecracker For This Post:
When searching for new posts, I see that my voting in one of the polls counts as a 'new post'. However, while the '<blah> minutes ago' entry updates correctly, the 'by <username>' is the last user to actually post a comment in the poll instead.
Result:
Poll: vB Guest Book 39... (4 Replies)
Hello,
basically what this script is supposed to do is showing a list of hosts that is given a number, that you will be able to choose from a list.
A check is made to verify that the chosen number is within the array and this is where things go bad and I don't know why, bizarre.
I've spent... (5 Replies)
foreach x ( *.foo)
echo "move file?"
set move=$<
if($move == y) then
echo "enter new pathname:"
set path=$<
mv $x $path/$x
endif
end
ok guys, im creating this script so i can move files with *.foo extensions and *.bar... (6 Replies)
I downloaded and installed "Cygwin yesterday onto my PC running Windows XP. When I tried to type "vi" in Cygwin's window, I got the following message bash: vi: Command not found
What shud i do inorder to get into vi editor
Thanks (10 Replies)
# check host value regex='^(||1|2|25)(\.(||1|2|25)){3}$' if ')" != "" ]; then if ]; then echo host $host not found exit 4 fi elif ]; then echo $host is an invalid host address exit 5 fi
espeacailly the top regex part?
---------- Post updated at 06:58 PM ---------- Previous update was... (1 Reply)
I am wondering if someone can help me out. I am new to oracle and given a task to install Oracle 11g on Solaris. I am running into some major problems since last week since I can't seem to get it to work.
I can't start GUI, tried different blogs but no luck. Then, I decided to install it in a... (4 Replies)
Boy oh boy, with only a MONO mic input to use AudioScope gets much more difficult when the ALTDC board is included.
It needs, so far, two hits at the MIC input with a single hit at the HEADPHONE audio output.
The first at the highest practical resolution for the AC component and the second... (0 Replies)
AudioScope Project.
(Apologies for any typos.)
For the few following......
AudioScope.sh...
Now at Version 0.60.00.
Well this baby has come a long way since its inception in January 2013. It is now at Version 0.60.00. It is MUCH more Apple centric now with a new OSX Sierra minimum _silent_... (7 Replies)
Discussion started by: wisecracker
7 Replies
LEARN ABOUT FREEBSD
timeout
TIMEOUT(1) BSD General Commands Manual TIMEOUT(1)NAME
timeout -- run a command with a time limit
SYNOPSIS
timeout [--signal sig | -s sig] [--preserve-status] [--kill-after time | -k time] [--foreground] <duration> <command> <args ...>
DESCRIPTION
timeout starts the command with its args. If command is still running after duration, it is killed. By default, SIGTERM. is sent.
--preserve-status Always exits with the same status as command even if it times out.
--foreground Do not propagate timeout to the command children.
-s sig, --signal sig Specify the signal to send on timeout. By default, SIGTERM. is sent.
-k time, --kill-after time Send a second kill signal if command is still running after time after the first signal was sent.
DURATION FORMAT
duration and time can be integer or decimal numbers. Values without unit symbols are interpreted as seconds.
Supported unit symbols are:
s seconds
m minutes
h hours
d days
EXIT STATUS
If the timeout was not reached, the exit status of command is returned.
If the timeout was reached and --preserve-status is set, the exit status of command is returned. If --preserve-status is not set, an exit
status of 124 is returned.
If command exits after receiving a signal, the exit status returned is the signal number plus 128.
If command is an invalid command, the exit status returned is 126.
If command is a non existing command, the exit status returned is 127.
If an invalid parameter is passed to -s or -k, the exit status return is 125.
SEE ALSO kill(1), signal(3)BSD Oct 28, 2014 BSD