[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Executing a file in /bin via web page
- Subject: Re: [cobalt-users] Executing a file in /bin via web page
- From: "J. Masterson" <masterson@xxxxxxxxxxxx>
- Date: Tue Jan 4 11:02:05 2000
Tom Socha wrote:
>
> I have a simple shell script in the /bin directory called RPD,
> it simple copies a file to a backup directory and renames the origianl
> file.
>
> I am trying to figure out how to just have a button on a web page that a
> user can click and it will execute the file.
>
> Any ideas?
I'd start with a form that pointed at a script something like:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
system("/bin/RPD") or die("Script failed.\n");
print "Okay, script executed.";
--
John Masterson
Web Developer
WAM!NET Missoula
masterson@xxxxxxxxxxxx