Arlina
16th January 2023, 09:43
Hi All,
There is a shell script which accepts inputs in following way:
bin/sh.uabc <username> <Enter>
Enter Input 1 : <input 1> <Enter>
Enter Input 2 : <input 2> <Enter>
Enter Input 3 : <input 3> <Enter>
I want to execute this from Baan program using shell.
Here is the code-snippet I tried:
long sh.ret
string str.command(1000)
string tmp.str(1)
tmp.str = " "
str.command = "/$BSE/sh.uabc " & strip$(form.id)& "echo -ne '\n' "& strip$(tmp.str)&"echo -ne '\n' "& strip$(tmp.str)&"echo -ne '\n' "& & strip$(tmp.str)& "echo -ne '\n'"
sh.ret = shell(str.command,0)
But it returns '127'
Never worked on shell script earlier.
Is the shell calling correct? Where am I going wrong?
There is a shell script which accepts inputs in following way:
bin/sh.uabc <username> <Enter>
Enter Input 1 : <input 1> <Enter>
Enter Input 2 : <input 2> <Enter>
Enter Input 3 : <input 3> <Enter>
I want to execute this from Baan program using shell.
Here is the code-snippet I tried:
long sh.ret
string str.command(1000)
string tmp.str(1)
tmp.str = " "
str.command = "/$BSE/sh.uabc " & strip$(form.id)& "echo -ne '\n' "& strip$(tmp.str)&"echo -ne '\n' "& strip$(tmp.str)&"echo -ne '\n' "& & strip$(tmp.str)& "echo -ne '\n'"
sh.ret = shell(str.command,0)
But it returns '127'
Never worked on shell script earlier.
Is the shell calling correct? Where am I going wrong?