www.webdeveloper.com
Results 1 to 4 of 4

Thread: Really Confused, Need Help soon!

  1. #1
    Join Date
    Mar 2003
    Location
    Seattle,Washington - USA
    Posts
    2

    Really Confused, Need Help soon!

    I have a few shell (.ksh) scripts on my unix server that I need to be able to start via a web page. And I am hoping that someone here will be able to show me an example of a
    script that will do this?

    I am ok with html and the shell script, but when it comes to
    the cgi/perl, I am totally lost!!

    Thanks in advance!!

  2. #2
    Join Date
    Nov 2002
    Location
    NY, USA
    Posts
    731
    You should be able to make the shell script itself executable, but if for some reason you can't because of a server configuration or whatever and are going to execute it via a Perl script then you'll probably want to use system.

  3. #3
    Join Date
    Mar 2003
    Location
    Seattle,Washington - USA
    Posts
    2
    Thanks for getting me pointed ( I think) in the right direction...
    As I understand it - System() waits for a return from the program. The program (shell script) I need t kick off simply passes an application command to the app from the command line. So there is no return.

    SO instead, I tried the following - works great on the command line still clueless on how to make a hyperlink/button start it though?

    #!/user/bin/perl

    $updnow = ("/usr/scripts/jans/updnow.ksh")

    exec $updnow;

  4. #4
    Join Date
    Nov 2002
    Location
    NY, USA
    Posts
    731
    still clueless on how to make a hyperlink/button start it though
    Just have the link reference the Perl script.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles