Re: DBI script won't run as cron job

2002-08-31 Thread jbajin
Martin, I run into the same problem all the time. The best way I fix it is to load the profile before I execute the the script. What everyone is saying will work for you but it'll take some time to find everything.. Just try sourcing your .profile in before you run the program and it'll w

Re:how to print out a variable if theres a . in it?

2002-07-09 Thread jbajin
>>this is verzeichnis.pl # #/usr/bin/perl -w use strict; my $qis_root = "/home/user1/DiREx/test"; my $SNR_LOG; chdir($qis_root)|| die "can“t change to $qis_root!"; while (defined($SNR_LOG = <*>)){ #print "$dateien\n"; parse_logs($SNR_LOG); } sub parse_lo

Re: Better "tail -f"

2002-04-02 Thread jbajin
How about putting a file lock on it? That way if someone tries to access it and write to it, it will not work. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Quieting 'Name "main::foo" only used once..."

2002-03-27 Thread jbajin
Don't use the -w... It's for warnings.. Then you won't get it. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: search

2002-03-27 Thread jbajin
How about trying something if you are going to go through a string.. grep //

Re: telnet...???

2002-03-25 Thread jbajin
You can use the Use::Telnet(); function.. . Here's a snippit of code: $t = new Net::Telnet (Timeout => 10, Prompt => '/[>]$/', Errmode => "return" ); $t->open("$hostname.db"); if ($t->login($username, $passwd) ) { @lines = $t->cmd("

Finding IP Addy, subnet, gateway, and DNS info.

2002-03-06 Thread jbajin
I have seen something around online through these post about trying to find that information. This will be for a Windows 9X/2k/Xp and so on. Can someone point me to the right module that will help me find this stuff? Thank you, Joseph Bajin Associate Systems Administrator.

Re: Can I do better than these configs

2002-03-06 Thread jbajin
Hi, I like the Second one a lot better. I am a huge fan of ASUS products. You might want to check with www.pricewatch.com. You might find some better prices. Good choice though!!! Joseph Bajin Associate Systems Administrator

Re: Request from Beginner

2002-03-05 Thread jbajin
Hello, Here is some info about opening and closing files. You can open a file by using the following syntax: open(DOG,"/home/scotty/data/dogs") || die "Couldn't open DOG.\n"; To Close a file use: close(DOG); For File Globbing try: while($x = ) { open(FILE,"$x") || die "Couldn't op

Perl script for simple web pages

2002-03-03 Thread jbajin
It depends. If you are writing them to create a simple page. Maybe, but using perl to decide something or take action is just a CGI script. So they turn out to be very useful.

Trouble with Net::Ping

2002-03-01 Thread jbajin
I am appearing to have some troubles. It appears that it can not reach the hosts specified, but when I try it manually it works just fine. Here is what I have for my code: #!/usr/bin/perl -w use strict; use Net::Ping; Initalize Variables# my @hosts= qw(au)

Re: net::telnet

2002-02-23 Thread jbajin
This is one way I did it. The letters represent different things. X,Y,Z,T,U,Q,W-- All Host Names. Hope this Helps my @hosts= qw(X Y ZZ TT UU Q WW; my $username = "XXX"; my $passwd = ""; my $t; my $check; my @lines; my $logPath = "/home//log"; my

Using Perl for a Wrapper

2002-02-08 Thread jbajin
I was wondering if it would be possible to create a script to act as a wrapper. It would kick off any processes that would be scheduled to start and if they would error that the wrapper would pick it up and report it somewhere else say through email or whatever.. What would it take to create so

Re: why shift @_ ?

2002-02-03 Thread jbajin
That's a very cool way of using that while loop and array. I got to see about using that. Is it considered any quicker or less memory intensive?

Re: newbie question

2002-01-29 Thread jbajin
- Original Message - From: "Clarke" <[EMAIL PROTECTED]> > $ man make >What is the meaning of the dollar sign. I am using windowsME. That was his Unix prompt. You won't be able to do a man on make in Windows. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-