Need to execute shell script from link.
I want to know if there is a program or if anyone knows how I can get a webpage link to execute shell scripts. This is a two part problem that I am attempting to resolve.
1.I want to execute an ftp sessions from my Linux web server to my Unix FTP server. 2.Then I want the script to start a cmd prompt on the local windows box and ftp the file from the Linux machine. I cant get to the Unix machine directly from the windows side however the Linux server has visibility to unix and windows. Is there software that does this or can someone point me to the correct forum to ask this question. Thanks in advance. The linux server is Slackware and I run apache 2.2.9. |
Can't you SSH to the Linux machine? Why do you need a command prompt?
|
I can use SSH to get to the linux server. However I am attempting to build a automated process so that the Shop floor people can access information that they need without having to learn how to use ftp or ssh. Currently they run windows xp and have a batch file that connects to the unix server and downloads the file via FTP.
However a security policy was just put in that makes me have to move the unix box to another network and use a linux server to go between. My thought was by using a website and links to run the script it would give me only one set of scripts to manage as well as an interface that the users are already comfortable with. |
This probably won't help you. BUT. One of the programmers where I work made an interface with our linux boxes that monitor health/processes/uptimes/etc and he also incorporated a command prompt that allows him to do some commands. The commands come from a script so only the commands in that script can be run from his interface. And he customized the commands so it's pretty basic to use. Know any good programmers?
|
If your the one running the website and its on your server...you could have it in a perl script and just run your script threw a perl script...however i could see this potentially being a security problem...but its an idea..
|
I dont know anyone that could help me with that program however while searching the internet today I found a resource that looks a lot like what you described. I am going to look into this for a possible solution.
The pearl script is a good ideal and I agree that it could be a security risk. Thank you for all the suggestions I will continue to work this issue and if I find a solution I will post it back in this forum. |
It's a security risk if the script itself can be abused or if the script can be accessed by unauthorised personnel. If enough details are posted I'd like to think there's enough people here that could whip up a reliable script (maybe open a thread in the Programming forum?) and restricting access can be done easily in your webserver (only HTTPS access to that area, restrict IP ranges and password the area).
|
Quote:
thanks |
unSpawn I think that sounds like a good ideal I will start a new thread in programming.
ncuapex I will look through my list of stuff and get you the link to that artical. Thank you all |
All times are GMT -5. The time now is 06:15 AM. |