Search Results

Search: Posts Made By: mattmiller
7,695
Posted By mattmiller
That did it, Thanks. Under my Linux ksh93...
That did it, Thanks.

Under my Linux ksh93 the original code works, with the closing parenthesis right after the EOF, but under AIX ksh93 it fails. The here document terminator should always be on...
7,695
Posted By mattmiller
Maybe this is an AIX thing.
Maybe this is an AIX thing.
7,695
Posted By mattmiller
ksh vs ksh93 -- syntax error ... `(' unmatched.
x=$(cat <<EOF
Hi.
EOF)

print "$x"

If my shebang is "/bin/ksh" this print "Hi." If my shebang is /bin/ksh93 this errors with:

syntax error at line 3: `(' unmatched.

I guess my default...
2,800
Posted By mattmiller
That's it.
That's what I needed. Thanks.
2,800
Posted By mattmiller
That looks like it's designed exclusively for the...
That looks like it's designed exclusively for the example I posted, but I'm looking for a more generic solution. The "-r <remote_host>" text might be anywhere in $@.

---------- Post updated at...
2,800
Posted By mattmiller
That doesn't work for me: $ echo...
That doesn't work for me:


$ echo the_script -a -b -r the_remote_host -x x_option_value -y arg1 arg2 | sed 's/-/~-/g' | tr "~" "\n" | egrep -v "\-" | tr -d "\n"
the_script $
I can't see how...
2,800
Posted By mattmiller
Remove Command-Line Option from String
I want to add a "-r <remote_host>" option to my ksh script, causing the script to run a script of the same name on the specified remote host. The remote invocation should itself include all the...
Showing results 1 to 7 of 7

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