Hello all,
Am using PuTTY command sender to send a script that downloads files from a http share and is supposed to chmod one of hte files with a "+x" attribute, but when I do that, it changes the "+x to "X" and then returns and error. BUT when I send the commands normally through PuTTYCS not in a script the command works, otherwise i have to paste it into each terminal session.
Am I saving the files wrong, with the wrong encoding? I have it set to save the file as a UNIX file instead of a DOS/Windows File, and also set to ANSI encoding.
I am trying to run these commands on a RHEL 5.3 system. I am running PuTTY Command Sender 1.81 and Windows 7.
The code being ran by the PuTTY Command Sender script:
Code:
chmod +x /tmp/linux-zabbix-agent/zabbix_linux_install.sh
/tmp/linux-zabbix-agent/zabbix_linux_install.sh
ps -e | grep zabbix
Error output:
Code:
chmod X /tmp/linux-zabbix-agent/zabbix_linux_install.sh
chmod: invalid mode: `X'
Try `chmod --help' for more information.