Calling a script from within csh with output redirection
0
votes
1
answer
282
views
What I would want:
#!/bin/csh
# call /myscriptpath/myscript.any and redirect 2>&1 and get retval and output
set my_msg =
/myscriptpath/myscript.any
set my_ret = echo $?
- How to capture the exit code from myscript.any?
- How to capture the message from myscript.any, if possible?
/myscriptpath/myscript.any This works as expected called from bash command line.
Asked by paulj
(238 rep)
Sep 21, 2023, 03:19 PM
Last activity: Oct 3, 2023, 06:15 PM
Last activity: Oct 3, 2023, 06:15 PM