Search Results

Showing results 1 to 6 of 6
Search took 0.00 seconds.
Search: Posts Made By: jim mcnamara ; Forum: Perl and child forums
Forum: Perl Jun 5th, 2006
Replies: 3
Views: 8,509
Posted By jim mcnamara
Ten lines of shell script is easier to maintain than 70 lines of perl.
It's also faster to develop.

Experienced sysadmins use shell scripts, then use perl/ruby/python when they cannot do whatever...
Forum: Perl Feb 1st, 2006
Replies: 3
Views: 3,793
Posted By jim mcnamara
It means that the dirlog variable contains a string literal value. The value is randomdir.log

The other two statements are attempting to:
1. to append (add-on to the end of) a file
2. read from...
Forum: Perl Jan 25th, 2006
Replies: 1
Views: 3,487
Posted By jim mcnamara
If the box in question a unix box, try setting up a signal handler - with use sigtrap

alarm() is supposed to send a SIGALRM to the process, which by default terminates.
Unless another handler...
Forum: Perl Nov 18th, 2005
Replies: 8
Views: 17,092
Posted By jim mcnamara
chris - you're correct. Perl is overkill which I guess was my point to start with.
3 lines of awk:

awk ' BEGIN {connected=-1}
$2 ~ /^connected/ {connected*=-1 ; continue}
...
Forum: Perl Nov 18th, 2005
Replies: 8
Views: 17,092
Posted By jim mcnamara
If this is any version of unix:
grep -v "connected" filename > newfile
deletes all of the lines having the word: connected
Forum: Perl Nov 18th, 2005
Replies: 5
Views: 14,820
Posted By jim mcnamara
You need to look at expect rather than trying to use perl.
expect is used for automating interactive dialogues.
Showing results 1 to 6 of 6

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC