troubleshooting Question

Trying to run a Linux/Unix bash command from the web, possible or need CGI?

Avatar of bemara57
bemara57 asked on
Linux OS DevPerlScripting Languages
5 Comments1 Solution849 ViewsLast Modified:
I need to create a bash file with a few commands. What I'm trying to do is a web interface to copy a directory into another directory and vice versa (two hyperlinks).

One link I want it to do:
cp /var/www/test /var/www/backup/test022207
cp /var/www/live /var/www/test

The other link I want:
cp /var/www/live /var/www/backup/live022207
cp /var/www/test /var/www/live

Not sure if it's possible to run a bash command from the web or I have to use Perl/CGI to do it. Any idea how I would accomplish this?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros