Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Mailx question

by Anonymous Monk
on Jul 01, 2000 at 09:25 UTC ( [id://20726]=note: print w/replies, xml ) Need Help??


in reply to Using Mailx

You are using $FILE in your system() call, which you don't define, but you do have an open FILE, "<", "output.txt" right above it, so I think that you think that using $FILE at the end of the system command will use output.txt as the input, which is incorrect. The correct code would be
system "mailx -s \"Testing Report\" name@company.com < output.txt";
You could also open a pipe with
open MAILX, "| mailx -s \"Testing Report\" name@company.com";
and write to MAILX to bypass creating the file altogether.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://20726]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-03-29 00:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found