Search Results

Search: Posts Made By: stonkers
2,022
Posted By stonkers
Ahhhh, you got it! Had to separate the first 2...
Ahhhh, you got it! Had to separate the first 2 arguments that didn't need quoted from the last argument and surround the last one in quotes when sending it. Thank you!!!


#!/bin/bash
...
2,022
Posted By stonkers
The code that I would EXPECT to work is: ...
The code that I would EXPECT to work is:


#!/bin/bash

SEARCH='ARG1 ARG2 "((^EXACT$)|(.*InTheMiddle*)|(^AtBeginning*))"'
java -cp /my/class/path MyClassName $SEARCH
exit $?


But bash -x...
2,022
Posted By stonkers
Pass RegEx to java program in bash script
I can't seem to get this right. I've tried it every way imaginable using every trick I see on stackexchange and such. No luck. So nothing major here, something like:


#!/bin/bash
...
1,952
Posted By stonkers
OK, thanks!
OK, thanks!
1,952
Posted By stonkers
The & isn't for redirect, it's to background the...
The & isn't for redirect, it's to background the function call so that I can do multiple function calls without waiting for each other. So what I'm trying to accomplish is:

my_function ${arg1}...
1,952
Posted By stonkers
I changed the code to: #!/bin/bash ...
I changed the code to:

#!/bin/bash
AT1="machine1"
AT2="machine2"
CM2=""
CM="machine4"
check_background()
{
# loop to check that background jobs finish
WAIT_COUNT=0
...
1,952
Posted By stonkers
Calling Bash Functions in the BG
I'm trying to call some functions in the background so that I can multitask in this script. Not working so hot. The functions I call don't ever seem to get called. I'm doing it the exact same way in...
Showing results 1 to 7 of 7

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