Run a script in remote UNIX using windows command prompt

3.8k Views Asked by At

I currently connect to my UNIX installed on my remote server using Secure CRT. I have a script(sh) on my UNIX which generates a file. I need to su(switch user) before executing the script.

I then ftp to this server(using ftp commands in command prompt on windows) and get the file generated by the above shell script.

However, I would like to automate this process and create a windows .bat file which would connect me to the UNIX server, su and run the required shell script and fetch the file.

I have found that I cannot run the shell script on UNIX using ftp. Could you please suggest me alternate ways to automate this?

Thanks

1

There are 1 best solutions below

0
On

Thanks for your help guys :) I created a script on secure CRT and while running the application using the bat file, I'm calling this script using the CRT command line options