6
I'm relatively new to Unix or shell scripting (a total novice to speak the truth), here is the deal: I have BI software that runs on a remote UNIX server. Through SAS client on Windows i run some analytic and create some flat files that need to be automatically pushed to that UNIX server, that's no problem through the SAS X command to execute Unix commands on rsubmit, I upload the files throught FTP prompt however i want to use a "sh " command once I logged on the ftp server
ftp -nv << -EOF > /AutomatedReports/Flatfiles/log/sendInv.log
open biserver.myserver.com
user biuser pass1234
prompt
lcd /container/AutomatedReports/KPI_Flatfiles/
cd /container/AutomatedReports/apps/flatfiles
put kpi_new_inv.txt
put instock_trend.txt
quit
The code above is sent to UNIX, however when I include
sh edastart -x "EX test"
i get an error, I just want to know if Im doing something wrong so I can look for another way to do it. Any help, guidance or answer will be highly appreciated.
1http://www.chiark.greenend.org.uk/~sgtatham/putty/ is a SSH client for Windows. – None – 2011-10-27T14:00:51.220
thanks, I do have putty installed on the computer, but the thing is I want to automate that process (the sas program runs on a scheduled task) so pretty much i do everything on it and the manually execute the remote script from putty which is precisely what I want to avoid, from SAS i can execute dos commands or batch files though, is there a way I could execute it if putty is isntalled on my machine? – None – 2011-10-27T14:03:39.243