LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-24-2008, 11:12 AM   #1
chackercon
Member
 
Registered: Jan 2008
Location: Oklahoma
Distribution: Slackware, QNX, Centos 5.2, Dream Linux, BackTrack, Fedora
Posts: 53

Rep: Reputation: 18
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.

Last edited by chackercon; 06-24-2008 at 02:14 PM.
 
Old 06-24-2008, 07:18 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
Can't you SSH to the Linux machine? Why do you need a command prompt?
 
Old 06-25-2008, 08:12 AM   #3
chackercon
Member
 
Registered: Jan 2008
Location: Oklahoma
Distribution: Slackware, QNX, Centos 5.2, Dream Linux, BackTrack, Fedora
Posts: 53

Original Poster
Rep: Reputation: 18
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.
 
Old 06-25-2008, 08:30 AM   #4
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 44
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?
 
Old 06-25-2008, 09:40 AM   #5
blither
Member
 
Registered: Dec 2002
Location: Ohio
Distribution: LFS, Ubuntu
Posts: 157

Rep: Reputation: 15
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..
 
Old 06-25-2008, 10:57 AM   #6
chackercon
Member
 
Registered: Jan 2008
Location: Oklahoma
Distribution: Slackware, QNX, Centos 5.2, Dream Linux, BackTrack, Fedora
Posts: 53

Original Poster
Rep: Reputation: 18
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.
 
Old 06-25-2008, 11:24 AM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
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).
 
Old 06-25-2008, 11:38 AM   #8
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 44
Quote:
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.
can you post what that is? I'd like to have a look at it as well.

thanks
 
Old 06-25-2008, 03:16 PM   #9
chackercon
Member
 
Registered: Jan 2008
Location: Oklahoma
Distribution: Slackware, QNX, Centos 5.2, Dream Linux, BackTrack, Fedora
Posts: 53

Original Poster
Rep: Reputation: 18
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to execute a shell script by clicking on it? foo1234 Linux - Newbie 12 04-18-2007 12:18 AM
execute shell script in KDE Lotharster Linux - Newbie 1 11-21-2005 06:02 PM
shell script won't execute brandnewbie Linux - Newbie 7 08-10-2004 01:30 PM
how to execute shell script with c code? khucinx Programming 3 05-04-2004 02:54 PM
shell script how to execute x2000koh Programming 6 07-29-2003 04:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration