folder create "{storage folder of client}/RunMe"
delete "{storage folder of client}/RunMe/output.txt"
delete runme.sh
createfile until __END__
#!/bin/sh
echo Hello
__END__
move __createfile runme.sh
wait chmod +x runme.sh
wait sh ./runme.sh 2>&1 > "{storage folder of client}/RunMe/output.txt"
The ActionScript will create the Folder but will not create the output.txt file
If I will run the runme.sh file that has been created with the same command that was written in the Client log file - with Terminal connected as Root - the Log will be created
On the Client log file , the wait statements are exited with error 0
I’ve got another issue - If I’ll add an ifconfig command - the output.txt file will only show the echo Hello and not the output of the ifconfig command
folder create "{storage folder of client}/RunMe"
delete "{storage folder of client}/RunMe/output.txt"
delete __createfile
delete /tmp/bf_tmp_script.sh
createfile until __EOF
#!/bin/sh
echo Hello
ifconfig
__EOF
move __createfile /tmp/bf_tmp_script.sh
wait chmod 755 /tmp/bf_tmp_script.sh
wait sudo su - root -c "/tmp/bf_tmp_script.sh | tee {pathname of storage folder of client}/RunMe/output.txt"
delete /tmp/bf_tmp_script.sh
Hi Guys, Listen up the previous Script was working ok with Red Hat 7.9
If I’ll try it on Red Hat 8.4 - It will only show the Echo command and not the Output of the ip / ifconfig