> The script is not going to be run from the sco server. :) 
> That's my problem if I could run the script there this 
> wouldn't be an issue.

Ohhhhhh - Well then give
Net::Telnet   $tnet->cmd("echo $fileguts | /bin/lp -dP5"); or somehtign like that
Net::Ssh::Perl
Net::FTP  a look

HTH

Dmuey
> 
> -----Original Message-----
> From: Dan Muey [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 20, 2003 1:38 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: Sco Print
> 
> 
> > Is there a way using perl that I can send a text file to a sco 
> > openserver print cue. On the server I would print the file 
> using cat 
> > filename.txt | lp -dP5
> 
> Howdy,
> 
> Get file contents from db into a variable
> I'd say open a pipe to lp -dP5 (Use the actual path to avoid 
> headaches) The write the contetn of the file to the 
> FILEHANDLE The close the FILEHANDLE
> 
> Rinse , lather, repeat
> 
> perldoc -f open
> 
> HTH
> 
> Dmuey
> 
> > 
> > But the files are not on the server and I would like to 
> automate the 
> > process. There is a batch of reports that I have to print 
> each month.
> > 
> > I want to store storing the files in a database and then 
> printing them 
> > automatically on the correct dates. I can handle all of this except 
> > how to go about getting them on the sco box and sent to the spooler.
> > 
> > Paul
> > 
> > 
> > --
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to