On Tue, 2003-07-22 at 11:35, Phan Ros wrote: > Hi, I am taking perl at school. > > > > I need help to create a simple menu with input of a( current date), b(users > currently log in), c(name of working directory), and d(contents of the > working directory). > > > > Thanks > > > > Angkor
#! /usr/bin/perl -w $date = `date`; $who = `w`; $pwd = `pwd`; $ls = `ls`; $xmess = '/usr/bin/X11/xmessage'; open(GUI, "|$xmess -file -") || die "no"; print GUI "Date: $date\n"; print GUI "Users: $who\n"; print GUI "CWD: $pwd\n"; print GUI "DIR: $ls\n"; close(GUI); you do use Linux right? HTH, jd -- jdavis <[EMAIL PROTECTED]> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]