|
^M is a Carriage Return
You'll need to write/save/convert your script file to use LFs only.
Your pre-defined "StartTSM.sh" may already be correct.
Fun huh ?
Well, I modified it around to test qp2shell on our development machine without TSM. It now looks like:
....+....1....+....2....+....3
************Beginning of data
#!/usr/bin/sh cd /ROB ls >/Operations/list.txt ************End of Data******
And I verified that /ROB exists with
wrklnk '/r*'
Object link
...
ron REPTEMP
ROB ROBTEST
...
Now when I run call qp2shell ('/QOpenSys/bin/sh' '/Operations/StartTSM.sh')
I get a qshell terminal session with:
/Operations/StartTSM.sh[2]: /ROB^M: not found.
Press ENTER to end terminal session.
What's this control-M garbage?
Rob Berendt
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.