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.