10-16-2009
You know your on the brink of loosing it when.....
you spend an entire day with scripting nightmares and go to bed real late in the early morning hrs to wake up to your gf asking you a question and your only answer is "It's in the script" LMAO
Happened to me this morning would you believe that?? My daughter is 10yrs old and my gf wanted to check and make sure i was going to pick her up after school except i was half sleep and remember telling her with a high level of certainty in my own conciousness that 'it's in the script' and that she had nothing to worry about. This came after a long tedious night of troubleshooting one of my own shell scripts with aver 40 lines of code that i managed to fix. She gave up on me and left to go to work then shortly after i awoke to my daughter letting me know she's ready for her trip to school and my response again was 'yea i know, it's in the script'. She replied "What Dad? I'm ready for school and it's almost time to go!" O_o .. nonetheless to say the least.. my brain was fried! Good thing was on our way we laughed hard about it and it's most definately going to stick out as one of the most bizarre awakenings i've ever had. Lol, never again though. Anyhow....
+++++++++++++++++++++++++++++++++++
***PROGRAMMERS BEWARE***
IF YOU RUN INTO THIS PROBLEM IT IS TIME FOR AN IMMEDIATE VACATION!!! ITS EITHER THAT OR CHECK YOURSELF INTO A SHRINK WHO WILL HAVE YOU COUNTING BACKWARDS WHILE BREATHING IN A BROWN PAPER BAG WHILE EXPRESSING YOUR FEELINGS OVER YOUR OWN CODE. I'LL SAY IT AGAIN BEWARE AND ENJOY LYFE!!
+++++++++++++++++++++++++++++++++++
If you have any stories of your own feel free to share here. As for me, I'm going back to sleep to get some much needed rest!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
If you wan't to try Linux but don't want to lose Micro$oft Win, 3 basic options. You can buy a new Disk ( wich aren't as expensive as they were) and install it there. You can partition your disk so that you'll be able to boot under win or linux. Or you can run VMware, wich is a great Virtual... (2 Replies)
Discussion started by: merlinpr
2 Replies
2. UNIX for Dummies Questions & Answers
hi. I am newbie in Unix. I wanted to install Free BSD 5.2.1 to my computer which winXp was already installed. But i couldn't.
I chose Standard. Then it said you are going to use dos style fdisk partitioning. Then a window displayed begining like this.
WARNING: A geometry of 155127/16/63 for... (0 Replies)
Discussion started by: sualcavab
0 Replies
3. Shell Programming and Scripting
Hi,
Can some one tell, how to replace ascii non printable TAB from the while to something, then later on replace it back to TAB.
Basciallz we do bulk data processing, our processin treats TAB as new field ,
So I thought we can replace it with something and later on revert it.
TIA (4 Replies)
Discussion started by: braindrain
4 Replies
4. Programming
Hi everyone,
I have a process that forks many times.At a random time point the children must send a SIGUSR1 to the parent.To do that I'm using a pair of sigaction & sigqueue.However many signals are getting lost.
Here are some code segments:
a)sigaction
sigset_t mask_set; /* used to set a... (12 Replies)
Discussion started by: jonas.gabriel
12 Replies
5. Shell Programming and Scripting
Hello, I have read a few threads on this subject and tried a few things out, but still come up short.
There was one good example, then the last reply was something to the effect of 'Use Sed' & 'Read a book'...
Well I read a bunch of online tutorials on sed, awk, tr, but still can't get the... (2 Replies)
Discussion started by: Majiktom
2 Replies
6. SCO
Hello,
We have a SCO box running OpenServer 5.0.5. This has our business software on it (15 users connecting via terminal emulator (ansio lite)) which has been running for about 12-15yrs strong!
Within the past 6-8 months, at random times of the day, we've been loosing connection to this box. ... (8 Replies)
Discussion started by: rpcbrielle
8 Replies
7. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
When I echo out the output of my awk script I loose the formatting
that I set in my awk script (it should be in a table format).
2. Relevant commands, code, scripts, algorithms:
3. The attempts at a solution (include all... (2 Replies)
Discussion started by: ROFL
2 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I'm trying to sort 2 different .txt tab delimited files with the command line:
sort -k 1b,1 inputfile > outputfile
But doing that i'm also sorting the header (that ends at the end of my file).
How can i sort a .txt file without sorting the header but conserving the header in the... (3 Replies)
Discussion started by: alisrpp
3 Replies
9. UNIX and Linux Applications
Hi all,
I don't know how many times I've setup samba shares, but... It's been a while since the last time. The SID UID maps used to always seem random. I.E. if I had to move the data to another box, I'd have to note all of the SID / UID relations and write scripts to convert them on the new... (0 Replies)
Discussion started by: mph
0 Replies
10. Solaris
Hi!
I am having a problem when logging in on a solaris 10 server, after typing one or two commands, I lose connectivity, with the following message:
server unexpectedly closed network connection
I have checked the following:
grep `uname -n` /etc/inet/hosts /etc/inet/ipnodes... (8 Replies)
Discussion started by: fretagi
8 Replies
RRDp(3) User Contributed Perl Documentation RRDp(3)
NAME
RRDp - Attach RRDtool from within a perl script via a set of pipes;
SYNOPSIS
use RRDp
RRDp::start path to RRDtool executable
RRDp::cmd rrdtool commandline
$answer = RRD::read
$status = RRD::end
$RRDp::user, $RRDp::sys, $RRDp::real, $RRDp::error_mode, $RRDp::error
DESCRIPTION
With this module you can safely communicate with the RRDtool.
After every RRDp::cmd you have to issue an RRDp::read command to get RRDtools answer to your command. The answer is returned as a pointer,
in order to speed things up. If the last command did not return any data, RRDp::read will return an undefined variable.
If you import the PERFORMANCE variables into your namespace, you can access RRDtool's internal performance measurements.
use RRDp
Load the RRDp::pipe module.
RRDp::start path to RRDtool executable
start RRDtool. The argument must be the path to the RRDtool executable
RRDp::cmd rrdtool commandline
pass commands on to RRDtool. Check the RRDtool documentation for more info on the RRDtool commands.
Note: Due to design limitations, RRDp::cmd does not support the "graph -" command - use "graphv -" instead.
$answer = RRDp::read
read RRDtool's response to your command. Note that the $answer variable will only contain a pointer to the returned data. The
reason for this is, that RRDtool can potentially return quite excessive amounts of data and we don't want to copy this around in
memory. So when you want to access the contents of $answer you have to use $$answer which dereferences the variable.
$status = RRDp::end
terminates RRDtool and returns RRDtool's status ...
$RRDp::user, $RRDp::sys, $RRDp::real
these variables will contain totals of the user time, system time and real time as seen by RRDtool. User time is the time RRDtool
is running, System time is the time spend in system calls and real time is the total time RRDtool has been running.
The difference between user + system and real is the time spent waiting for things like the hard disk and new input from the Perl
script.
$RRDp::error_mode and $RRDp::error
If you set the variable $RRDp::error_mode to the value 'catch' before you run RRDp::read a potential ERROR message will not cause
the program to abort but will be returned in this variable. If no error occurs the variable will be empty.
$RRDp::error_mode = 'catch';
RRDp::cmd qw(info file.rrd);
print $RRDp::error if $RRDp::error;
EXAMPLE
use RRDp;
RRDp::start "/usr/local/bin/rrdtool";
RRDp::cmd qw(create demo.rrd --step 100
DS:in:GAUGE:100:U:U
RRA:AVERAGE:0.5:1:10);
$answer = RRDp::read;
print $$answer;
($usertime,$systemtime,$realtime) = ($RRDp::user,$RRDp::sys,$RRDp::real);
SEE ALSO
For more information on how to use RRDtool, check the manpages.
AUTHOR
Tobias Oetiker <tobi@oetiker.ch>
perl v5.12.1 2010-03-22 RRDp(3)