Find the answer to your Linux question:
Results 1 to 7 of 7
Please suggest how can I use following statement in perl wget "http://webserver/test.cgi?year=2007&data=test&date=2008-03-04"...
  1. #1
    Linux Newbie
    Join Date
    Jan 2008
    Posts
    114

    [SOLVED] How can I use wget in Perl ???



    Please suggest how can I use following statement in perl

    wget "http://webserver/test.cgi?year=2007&data=test&date=2008-03-04"
    Switched to Scripting

  2. #2
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    Code:
    system ('wget "http://webserver/test.cgi?year=2007&data=test&date=2008-03-04"');
    should do it.

    jaigs_27, you've asked lots of questions about Perl at this site. Have you considered just working through a Perl tutorial? You might discover ideas for using Perl that you'd never have imagined otherwise.
    --
    Bill

    Old age and treachery will overcome youth and skill.

  3. #3
    Linux Newbie
    Join Date
    Jan 2008
    Posts
    114
    Thanks a lot.

    Ya, you are right I'll take care of it henceforth.

    Sorry if I am disturbing you lot.
    Switched to Scripting

  4. #4
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    Hey, there was no disturbing. :)

    It's just that in the long run, documentation can be a better friend for you than we can.

    Sometimes documentation isn't enough. I'm thinking those situations are what we're basically here for. Come back if you need us!
    --
    Bill

    Old age and treachery will overcome youth and skill.

  5. #5
    Linux Newbie
    Join Date
    Jan 2008
    Posts
    114
    Thanks a lot
    Switched to Scripting

  6. #6
    Linux Newbie
    Join Date
    Jan 2008
    Posts
    114
    system ('wget "http://webserver/test.cgi?year=2007&data=test&date=2008-03-04"');

    this failing when passing varaible instead of strings

    like
    system ('wget "http://webserver/test.cgi?year=$year&data=test&date=$date"');
    Switched to Scripting

  7. #7
    Linux Newbie
    Join Date
    Jan 2008
    Posts
    114
    Thanks resolved
    Switched to Scripting

Posting Permissions

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