$data = `/3rdparty/perl/bin/sunos5/lwp-request -p http://proxy-syr.global.lmco.com $hostname$url -C $user:$password`; open F, ">$temp$file" or die "Can't write $temp$file, $1\n"; print F $data; close F; # you don't need the system call to do chmod as Perl has one chmod 777, $tempfile or die "Can't chmod $temp$file $!\n"; system("acroread -toPostScript $temp$file"); system("lp -d ep5_hpp01 $temp *.ps");