I am trying to FTP files to a Unix box from my Windows 2003 Server using ASP, then change the permissions to the file using RSH.
I have the FTP working, however, when attempting to perform an RSH to the box (rsh server chmod 775 tst.sh) I am not getting through, which I assume is due to a permission based issue since the user performing the action is the internet based acct (ISUR_SERVERNAME).
I tried several ways from putting the actual code into the ASP page, to just putting it into a .bat file and then calling it from the ASP page (see example showing me trying to just run an ls command and pipe the output to a text file on the server).
If any of the experts could help me that would be great.
' Example of running straight from code
set wshell = CreateObject("WScript.Shell")
wshell.run "rsh.exe serveranme ls > C:\Inetpub\wwwroot\idap\dir.txt" ', 0, TRUE
set wshell = nothing