I’m sending a pretty long command via SSH from C# to a unix box and it seems the command is to long to run. I read you can escape it via [enter] but I have some quotation shenanigans going on to where it keeps saying unmatched quotes.
Example Cmd:
tibrvsend "Destination" "really really long string"
Just flat out doesnt send
tibrvsend "Destination" "really really\
long string"
has unmatched ” error.
I’m sure this is simple, can you guys help me out?
Thanks!
If your SSH session is persistent, you can declare a shell script variable (e.g.
$myvar='string'), then concatenate other part of that (long) string to the end of the string in multiple commands and then run the command by passing that variable to it instead of sending it the whole string.