Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script for lynx

Status
Not open for further replies.

job357

Technical User
Sep 16, 2002
106
US
Hi,
I am new to perl and wonder if some can put me in the right direction to a simple script. This is what i want it to do:

1. take input from the user (eg open file (<STDIN>);)

2. Ask the user what will the new file be named.

2. process the input with system command lynx --dump url > new_file_name (place the new file in /export/url directory)

This is how it done manually:
$cd /export/url
$lynx --dump url > new name # I use lynx for formatting
$vaila! there's a freshnew vi that can be view with vi.

Thanks,
Travis
 
just use the system() command to shell out to the O/S. Works in nearly everything except Active Pearl on Win98.
ex:
system(&quot;cd /mydir&quot;)
 
just use the system() command to shell out to the O/S. Works in nearly everything except Active Perl on Win98.
ex:
system(&quot;cd /mydir&quot;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top