in reply to Re: linux file creation
in thread linux file creation

Thanks for the suggestions. I am not sure how to determine the working directory. I tried using pwd when in the directory where script reside to get the full path and added that to the file name. This still did not work. My guess is that due to my lack of Linux experience I am missing something simple. Here is my altered script. Any suggestions would be greatly appreciated.
#!/usr/bin/perl # Create a user agent object use LWP::UserAgent; my $ua = LWP::UserAgent->new; my $url = 'http://www.nwweather.com/images/realwind-animate1.gif'; my $response = $ua->get($url, ':content_file' => '/kunden/homepages/ +40/d176746031/htdocs/NWWX/CamScripts/testimage.gif'); # Pass request to the user agent and get a response back # Check the outcome of the response if ($response->is_success) { print $url; } else { print $response->status_line, "\n"; }