[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] UNIX Perl problem



Hi there,

This question isn't really directly related to MacPerl, but it's a Perl
problem.  I'm trying to use Shell.pm to execute shell commands in Linux,
and I want to use the write command to regularly communicate with users,
but I'm encountering difficulties.

What I've done goes something like this:

#!/usr/bin/perl

use Shell.pm;

write("$user");

#now what? How do I actually send the message and close?  Is there
another Unix command that just sends text in a single line command?

I'd appreciate any help!

Cheers,

Sveinbjorn Thordarson


# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org