RE: system() problem in win98

2003-09-11 Thread Tim Johnson
bject: RE: system() problem in win98 I don't own a win98 system. How to be sure if the command works under such a system. Any reference of what can replace the start command because it stuck unless i use it in my syntax. Quoting Tim Johnson <[EMAIL PROTECTED]>: > > I think wha

RE: system() problem in win98

2003-09-11 Thread sc00170
I don't own a win98 system. How to be sure if the command works under such a system. Any reference of what can replace the start command because it stuck unless i use it in my syntax. Quoting Tim Johnson <[EMAIL PROTECTED]>: > > I think what he is saying is that the syste

Re: system() problem in win98

2003-09-11 Thread Beau E. Cox
Yes; that's what I was trying to say! - Original Message - From: "Tim Johnson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Beau E. Cox" <[EMAIL PROTECTED]> Cc: "Perl Beginners" <[EMAIL PROTECTED]> Sent: Wednesday, Septemb

RE: system() problem in win98

2003-09-11 Thread Tim Johnson
I think what he is saying is that the system() syntax is not changed in Perl between Win98 and Win2k except where there are changes in the shell of each operating system. Try typing the command in manually and make sure it really works before you start looking for a bug in Perl. There are

Re: system() problem in win98

2003-09-11 Thread sc00170
EMAIL PROTECTED]> > Sent: Wednesday, September 10, 2003 11:23 PM > Subject: system() problem in win98 > > > > > > i have the following function call > > > > $filename_winword="C:/Program Files/Microsoft Office/Office/WINWORD.EXE"; > > > &g

Re: system() problem in win98

2003-09-11 Thread Beau E. Cox
- Original Message - From: <[EMAIL PROTECTED]> To: "Perl Beginners" <[EMAIL PROTECTED]> Sent: Wednesday, September 10, 2003 11:23 PM Subject: system() problem in win98 > > i have the following function call > > $filename_winword="C:/Program Fi

system() problem in win98

2003-09-11 Thread sc00170
i have the following function call $filename_winword="C:/Program Files/Microsoft Office/Office/WINWORD.EXE"; $result->{DOCUMENT_NAME}= the filename from the database. system ("start"," ",$filename_winword,"/n ", "docs/$result->{DOCUMENT_NAM

Re: Find the name of all the function on the system

2003-09-08 Thread Jenda Krynicky
From: [EMAIL PROTECTED] > I need to do some kind of generic log trow my code, this will be used > just in debug mode. > > I has sinking something like. > > sub prepareLog{ > foreach my $functionName (xpto()) { > next if not toLog($functionName); > *$functionName = sub { >print "start: $

Re: system function wont redirect output

2003-09-07 Thread Steve
line 1: 1: command not found > > code: > $return = system("tar czvf $tar $files > $logfile >2&1"); > > if i take out the > $logfile >2&1 , it works fine but i get that error > with it in, but the werid thing is it did work before this is very > puz

system function wont redirect output

2003-09-07 Thread Steve
hey, in my program im just trying to redirect the commands output but i get the error: sh: line 1: 1: command not found code: $return = system("tar czvf $tar $files > $logfile >2&1"); if i take out the > $logfile >2&1 , it works fine but i get that error with it in,

Re: Find the name of all the function on the system

2003-09-05 Thread Randal L. Schwartz
> "Marcos" == Marcos Rebelo <[EMAIL PROTECTED]> writes: Marcos> I need to do some kind of generic log trow my code, this will Marcos> be used just in debug mode. First, you might just consider running your code under the debugger. You can make a custom debugger hook that traces exactly what y

Find the name of all the function on the system

2003-09-05 Thread Marcos . Rebelo
I need to do some kind of generic log trow my code, this will be used just in debug mode. I has sinking something like. sub prepareLog{ foreach my $functionName (xpto()) { next if not toLog($functionName); *$functionName = sub { pri

Re: system call

2003-08-29 Thread John W. Krahn
Imtiaz Ahmad wrote: > > Hi- Hello, > Can someone please tell me how do I modify following line so that the result > gets stored in the var. > > $count = system("$command $archive_dir | $grep_command -c $string1") ; open PIPE, "$command $archive_dir |"

RE: system call

2003-08-29 Thread NYIMI Jose (BMB)
perldoc -q backticks José. -Original Message- From: Imtiaz Ahmad [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2003 10:48 PM To: [EMAIL PROTECTED] Subject: system call Hi- Can someone please tell me how do I modify following line so that the result gets stored in the var

RE: system call

2003-08-29 Thread Hanson, Rob
Use backticks. $result = `some command`; system() on the other hand returns the exit status code. $exit_code = system('some command'); ...Or... if (system('some command') != 0) { print "Failed!"; } Rob -Original Message- From: Imtiaz Ahmad

system call

2003-08-29 Thread Imtiaz Ahmad
Hi- Can someone please tell me how do I modify following line so that the result gets stored in the var. $count = system("$command $archive_dir | $grep_command -c $string1") ; thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

any file system in database with gnu gpl license ?

2003-08-25 Thread german aracil boned
Yes .. I build a file system with firebird, perl and others. It's a free open source project. For more information visit the web project at http://sourceforge.net/projects/tlsystem I'm waiting yours comments. best regards -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

timing out a system call

2003-08-14 Thread Niall Flinn
Hi folks, I'm writing my first actual useful perl scripts and I've run into the following problem - I'm using the "system" function to run a command line process (a 3d renderer, as it happens) from within my script. This works fine, except that sometimes the pr

System or Modules?

2003-08-14 Thread Pablo Fischer
Hi I finish a big part of a script. Cause Im working with command to 'cp', 'remove', 'move','make directories' Im using certain Modules to do that, however I would like to know whats better in perl, to use the 'system' command or to use modules

can system() interrupt perl at runtime?

2003-08-14 Thread Martin A. Hansen
Hi Is there a way to make an exception from an external program run with system( "program", "arg1", "arg2", .. ); trigger a perl exception? that is, without explicitly checking $!, $? or $@ after every call ? Martin -- To unsubscribe, e-mail: [EMAIL PROTECT

Re: System or Modules?

2003-08-14 Thread Janek Schleicher
Pablo Fischer wrote at Tue, 05 Aug 2003 01:58:35 +: > I finish a big part of a script. Cause Im working with command to 'cp', > 'remove', 'move','make directories' Im using certain Modules to do that, > however I would like to know whats bet

Re: timing out a system call

2003-08-14 Thread denis
On Thu, 14 Aug 2003, Niall Flinn wrote: > Hi folks, > > I'm writing my first actual useful perl scripts and I've run into the following > problem - I'm using the "system" function to run a command line process (a 3d > renderer, as it happens) from w

Re: timing out a system call

2003-08-14 Thread denis
olks, > > > > I'm writing my first actual useful perl scripts and I've run into the > > following problem - I'm using the "system" function to run a command line process > > (a 3d renderer, as it happens) from within my script. This works fine,

Re: Stupid(?) Question on System "set"

2003-06-19 Thread Steve Grazzini
/* 22 vars */]) = -1 ENOENT [pid 10527] execve("/usr/bin/set", ["set"], [/* 22 vars */]) = -1 ENOENT [pid 10527] execve("/usr/X11R6/bin/set", ["set"], [/* 22 vars */]) = -1 ENOENT [pid 10527] execve("/opt/bin/set", ["set"], [/*

Re: Stupid(?) Question on System "set"

2003-06-19 Thread Jeff Westman
--- Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> wrote: > On Jun 19, Jeff Westman said: > > > 1 #!/bin/perl -w > > 2 > > 3 @a = qx{set}; > > >Can't exec "set": No such file or directory at ./x line 3. > > > >Yet, using qx{env} works fine. Why? > > Because 'set' is a shell built-in, an

Re: Stupid(?) Question on System "set"

2003-06-19 Thread Jeff 'japhy' Pinyan
On Jun 19, Jeff Westman said: > 1 #!/bin/perl -w > 2 > 3 @a = qx{set}; >Can't exec "set": No such file or directory at ./x line 3. > >Yet, using qx{env} works fine. Why? Because 'set' is a shell built-in, and 'env' is a program. Whatever shell Perl is using to run your command, i

Re: Stupid(?) Question on System "set"

2003-06-19 Thread Casey West
It was Thursday, June 19, 2003 when Jeff Westman took the soap box, saying: : I am trying to see what variables are set in my (parent) environment. : The following gives me an error: : : 1 #!/bin/perl -w : 2 : 3 @a = qx{set}; : 4 : 5 print foreach (@a); : 6 : : E

Stupid(?) Question on System "set"

2003-06-19 Thread Jeff Westman
I am trying to see what variables are set in my (parent) environment. The following gives me an error: 1 #!/bin/perl -w 2 3 @a = qx{set}; 4 5 print foreach (@a); 6 Error message: Can't exec "set": No such file or directory at ./x line 3. Yet, using qx{env} works

Re: system function

2003-06-17 Thread Motherofperls
cket > "; > > > >exec("sendscript.pl"); > >print "Couldn't start sendscript.pl > Error: $!\n"; > > How about exec("..") or print "Couldn't start it $!"; > Since this will print an error no matter what. > > Also have youy tried system() or qx()? > > > > >I guess as long as the sockets open I won't fuss over this > > >

RE: system function

2003-06-16 Thread Dan Muey
u'd have to type in to execute it. Or perl sendscript.pl if it's not executable. > > How about exec("..") or print "Couldn't start it $!"; > Since this will print an error no matter what. I should clarify, since your origiinal way would print the Error

RE: system function

2003-06-16 Thread Dan Muey
in/perl > use CGI; > my$q = CGI::new(); I think you want my $q not my$q > print $q->header(); > print "Trying to start socket"; > > exec("sendscript.pl"); > print "Couldn't start sendscript.pl Error: $!\n"; How about exec(".."

Re: system function

2003-06-16 Thread John W. Krahn
[EMAIL PROTECTED] wrote: > > I'm trying to execute a perl script with > system("sendscript.pl"); > > I also tried exec("sendscript.pl"); > > Both of these return Error: No such file or directory > > The sendscript.pl is in the same direc

Re: system function

2003-06-16 Thread Motherofperls
I tried a couple of those ideas. I put a BEGIN statement in the script I'm trying to open and to my surprise it's opened. I'm still getting Error: No such file or directory The script is very small and on a unix platform: #!/usr/bin/perl use CGI; my$q = CGI::new(); print $q->header(); print "

RE: system function

2003-06-16 Thread Dan Muey
> I'm trying to execute a perl script with system("sendscript.pl"); > > I also tried exec("sendscript.pl"); > > Both of these return Error: No such file or directory Put a ./ infront if it's unix. 1)Is it executable? -> ls -l ./send

RE: system function

2003-06-16 Thread Johnson, Shaunn
12:27 PM To: [EMAIL PROTECTED] Subject: system function I'm trying to execute a perl script with system("sendscript.pl"); I also tried exec("sendscript.pl"); Both of these return Error: No such file or directory The sendscript.pl is in the same directory as the script. What am I doing wrong?

RE: system function

2003-06-16 Thread Miller, Joseph S
What happens when you include the path? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2003 11:27 AM To: [EMAIL PROTECTED] Subject: system function I'm trying to execute a perl script with system("sendscript.pl"); I

RE: system function

2003-06-16 Thread Paul Kraus
Try... system("perl sendscript.pl"); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2003 12:27 PM To: [EMAIL PROTECTED] Subject: system function I'm trying to execute a perl script with system("sendscript.pl&qu

system function

2003-06-16 Thread Motherofperls
I'm trying to execute a perl script with system("sendscript.pl"); I also tried exec("sendscript.pl"); Both of these return Error: No such file or directory The sendscript.pl is in the same directory as the script. What am I doing wrong?

Re: Adding user to the system by using Perl?

2003-06-14 Thread zentara
On Sat, 14 Jun 2003 01:27:42 -0300, [EMAIL PROTECTED] (Josimar Nunes De Oliveira) wrote: >I get an error at line: >system("/usr/sbin/chpasswd $user:$password")==0 or die "Error: $?"; >and I changed it to: >system("echo $user:$password | /usr/sbin/c

Re: Adding user to the system by using Perl?

2003-06-13 Thread Josimar Nunes de Oliveira
I get an error at line: system("/usr/sbin/chpasswd $user:$password")==0 or die "Error: $?"; and I changed it to: system("echo $user:$password | /usr/sbin/chpasswd")==0 or die "Error: $?"; in such way it works fine. Any comment? - Origina

Re: RFC s/user Access->M/user web based system

2003-05-31 Thread Gary Stainburn
On Thursday 29 May 2003 4:21 pm, Jenda Krynicky wrote: > From: Bob Showalter <[EMAIL PROTECTED]> > > > Gary Stainburn wrote: > > > At the moment we have a membership database written in access on a > > > windows box. One person is responsible for keeping this up to date > > > and then distributing

Re: RFC s/user Access->M/user web based system

2003-05-30 Thread Willem van der Walt<[EMAIL PROTECTED]>
Hi, Once you have put your data on postgresql and have built/downloaded your php web frontend, use the postgresql ODBC driver for windows to pull the data into access. regards, Willem On Thu, 29 May 2003, Gary Stainburn wrote: > Hi folks, > > I'm after general ideas and pointers for a project I'

RE: RFC s/user Access->M/user web based system

2003-05-30 Thread Jenda Krynicky
From: Bob Showalter <[EMAIL PROTECTED]> > Gary Stainburn wrote: > > At the moment we have a membership database written in access on a > > windows box. One person is responsible for keeping this up to date > > and then distributing the updated file for others to use - e.g. for > > mailshots. > >

RE: RFC s/user Access->M/user web based system

2003-05-29 Thread Bob Showalter
Gary Stainburn wrote: > Hi folks, > > I'm after general ideas and pointers for a project I'm likely to get > lumbered with. > > At the moment we have a membership database written in access on a > windows box. One person is responsible for keeping this up to date > and then distributing the updat

RFC s/user Access->M/user web based system

2003-05-29 Thread Gary Stainburn
Hi folks, I'm after general ideas and pointers for a project I'm likely to get lumbered with. At the moment we have a membership database written in access on a windows box. One person is responsible for keeping this up to date and then distributing the updated file for others to use - e.g. fo

Re: accessing the string from system("ls -al") / browse dir script

2003-04-06 Thread simran
Stat::lsMode would probably be of interest as well. http://search.cpan.org/author/MJD/Stat-lsMode-0.50/lsMode.pm On Mon, 2003-04-07 at 10:41, R. Joseph Newton wrote: > [EMAIL PROTECTED] wrote: > > > > > Hello Mother, > > > > While not knowing exactly what you want to do, > > in general you can

File::Stat vers system('ls -al')

2003-04-06 Thread Motherofperls
http://www.rubycentral.com/book/ref_c_file__stat.html Ive read the above page which explains File::Stat methods. I'm just not sure how this translates to the various unix forms of drwxrwxrwx. Another thing I'm not clear on is the real user and the effective user.

Re: accessing the string from system("ls -al") / browse dir script

2003-04-06 Thread Rob Dixon
[EMAIL PROTECTED] wrote: > I'm trying to put the string from the system("ls -al") into a variable. It > simply prints to the page and puts 1 in the variable. > > I wan't to use this variable to determine the permissions for the files on a > linux machine.

Re: accessing the string from system("ls -al") / browse dir script

2003-04-06 Thread John W. Krahn
[EMAIL PROTECTED] wrote: > > I'm trying to put the string from the system("ls -al") into a variable. It > simply prints to the page and puts 1 in the variable. perldoc -f system > I wan't to use this variable to determine the permissions for the files on a >

Re: accessing the string from system("ls -al") / browse dir script

2003-04-06 Thread Paul Johnson
On Sun, Apr 06, 2003 at 07:01:02AM -0400, [EMAIL PROTECTED] wrote: > I wan't to use this variable to determine the permissions for the files on a > linux machine. Is there an easier way? opendir readdir stat closedir perldoc -f each of those for the docs. -- Paul Johnson - [EMAIL PROTECTED]

RE: accessing the string from system("ls -al") / browse dir scri pt

2003-04-06 Thread Halkyard, Jim
@ls = `la -al`; will do it. $ls = system("ls -al"); will save the exit status of the command, rather than the output. Jim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 06 April 2003 12:01 To: [EMAIL PROTECTED] Subject: accessing the string f

Re: accessing the string from system("ls -al") / browse dir script

2003-04-06 Thread Li Ngok Lam
> I'm trying to put the string from the system("ls -al") into a variable. @list = `ls -al`; > It simply prints to the page and puts 1 in the variable. What's that mean '1' anyway ? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

accessing the string from system("ls -al") / browse dir script

2003-04-06 Thread Motherofperls
I'm trying to put the string from the system("ls -al") into a variable. It simply prints to the page and puts 1 in the variable. I wan't to use this variable to determine the permissions for the files on a linux machine. Is there an easier way? Tricia

Re: SIGINT and SIGQUIT with system()

2003-04-04 Thread Rob Dixon
[EMAIL PROTECTED] wrote: > Hi there > > I'm stuck with system(). According to some posts, system() is passing SIGINT > and SIGQUIT to it's child, yet this doesn't seem to work. I've boiled the > code down to the following lines. (Please note that 'alsaplay

RE: SIGINT and SIGQUIT with system()

2003-04-04 Thread Bob Showalter
R. Joseph Newton wrote: > [EMAIL PROTECTED] wrote: > > > if (!$pid) { &player(); } > > while (!-e "stop") { sleep(10); } > > kill('QUIT', $pid); > > ... > > > Am I missing something here? Any idea how I could do this > > differently? > > > > Yes. Braces. They may not be required

Re: SIGINT and SIGQUIT with system()

2003-04-03 Thread R. Joseph Newton
[EMAIL PROTECTED] wrote: > if (!$pid) { &player(); } > while (!-e "stop") { sleep(10); } > kill('QUIT', $pid); ... > Am I missing something here? Any idea how I could do this differently? > Yes. Braces. They may not be required here--are you using strict?--but they would certainl

RE: SIGINT and SIGQUIT with system()

2003-04-03 Thread Bob Showalter
[EMAIL PROTECTED] wrote: > Hi there > > I'm stuck with system(). According to some posts, system() is passing > SIGINT and SIGQUIT to it's child, yet this doesn't seem to work. No, I don't think that's correct. A terminal driver will catch ^C and ^\ and se

SIGINT and SIGQUIT with system()

2003-04-03 Thread shrotty
Hi there I'm stuck with system(). According to some posts, system() is passing SIGINT and SIGQUIT to it's child, yet this doesn't seem to work. I've boiled the code down to the following lines. (Please note that 'alsaplayer' is a console soundfile player tha

RE: Run System Command against every line in a specific file

2003-03-21 Thread David Olbersen
L PROTECTED] > Subject: Run System Command against every line in a specific file > > > Hello All, > > Any help on this topic would be greatly appreciated. > Here's the situation. I have a mailserver that I'm > cleaning up running qmail/vpopmail. What I'm

Run System Command against every line in a specific file

2003-03-21 Thread John B
Hello All, Any help on this topic would be greatly appreciated. Here's the situation. I have a mailserver that I'm cleaning up running qmail/vpopmail. What I'm doing is deleting all dead domains on that mailserver. The system command for this would be: /var/qmail/vpopmail

RE: UNIX file system free space, used space, total space

2003-03-19 Thread Tony Esposito
Good suggestion.now I just need to get Filesys.pm installed on my system. Thanks! -Original Message- From: david [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 11:52 AM To: [EMAIL PROTECTED] Subject: Re: UNIX file system free space, used space, total space Tony Esposito

Re: UNIX file system free space, used space, total space

2003-03-19 Thread david
Tony Esposito wrote: > Anyone have an idea about getting UNIX file system free space, used space, > total space numbers without having to resort to something like the > following ( which gets the percent of used space for a command-line > supplied file system name stored in

Re: UNIX file system free space, used space, total space

2003-03-18 Thread John W. Krahn
Tony Esposito wrote: > > Anyone have an idea about getting UNIX file system free space, used space, > total space numbers without having to resort to something like the following > ( which gets the percent of used space for a command-line supplied file > system name stored

UNIX file system free space, used space, total space

2003-03-18 Thread Tony Esposito
Anyone have an idea about getting UNIX file system free space, used space, total space numbers without having to resort to something like the following ( which gets the percent of used space for a command-line supplied file system name stored in the variable ${file_sys} ): $per_used = `df -k

Re: Query: System Errors

2003-03-12 Thread R. Joseph Newton
Manish Uskaikar wrote: > Hi, > > Thanks for the reply. I was working with the regular expressions wanted to > know if i can have an equivalent of > > try > { > my code here > } > catch(exception e) > { > } > > Regards > Manish U Yes. Perl does have exceptions. I didn't find out about this u

Re: Query: System Errors

2003-03-12 Thread Sudarshan Raghavan
On Wed, 12 Mar 2003, Manish Uskaikar wrote: > Hi, > > Thanks for the reply. I was working with the regular expressions wanted to > know if i can have an equivalent of > > try > { > my code here > } > catch(exception e) > { > } > > Regards > Manish U > This might be of interest to you http

Re: Query: System Errors

2003-03-12 Thread Manish Uskaikar
PROTECTED]> Sent: Wednesday, March 12, 2003 11:03 AM Subject: Re: Query: System Errors > On Wed, 12 Mar 2003, Manish Uskaikar wrote: > > > Hi, > > > > Can anyone help me, regarding the trapping of system errors like segmentation fault? I want the program to exit only af

Re: Query: System Errors

2003-03-11 Thread Sudarshan Raghavan
On Wed, 12 Mar 2003, Manish Uskaikar wrote: > Hi, > > Can anyone help me, regarding the trapping of system errors like segmentation fault? > I want the program to exit only after i finish completing my error_log file. 1) What kind of errors are you looking at? 2) Is this a perl

Query: System Errors

2003-03-11 Thread Manish Uskaikar
Hi, Can anyone help me, regarding the trapping of system errors like segmentation fault? I want the program to exit only after i finish completing my error_log file. Thanks and Regards Manish U.

Re: The Best Method to install Set up a Unix System with PERL, PHP and Apache

2003-03-02 Thread Wiggins d'Anconia
Mo Elwaisi wrote: hi i have been having a lot of problems recently with my system that is a linux Red hat system, with Apache 2 and PHP and PERL, and i have decided to make a fresh install, but this time without installing any of the packages automatically, but rather to perform a manual

RE: The Best Method to install Set up a Unix System with PERL, PHP and Apache

2003-03-02 Thread Ebaad Ahmed
ssage- From: Beau E. Cox [mailto:[EMAIL PROTECTED] Sent: Saturday, March 01, 2003 7:06 PM To: Mo Elwaisi; [EMAIL PROTECTED] Subject: RE: The Best Method to install Set up a Unix System with PERL, PHP and Apache Hi Mel - > -Original Message- > From: Mo Elwaisi [mailto:[EMAIL PROTEC

RE: The Best Method to install Set up a Unix System with PERL, PHP and Apache

2003-03-01 Thread Beau E. Cox
Hi Mel - > -Original Message- > From: Mo Elwaisi [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 01, 2003 4:48 PM > To: [EMAIL PROTECTED] > Subject: The Best Method to install Set up a Unix System with PERL, PHP > and Apache > > > hi > > i have been

The Best Method to install Set up a Unix System with PERL, PHP and Apache

2003-03-01 Thread Mo Elwaisi
hi i have been having a lot of problems recently with my system that is a linux Red hat system, with Apache 2 and PHP and PERL, and i have decided to make a fresh install, but this time without installing any of the packages automatically, but rather to perform a manual install. so i simply

Re: system info: cpu, ram, disk - Google for "AdminMisc GetMemoryInfo() "

2003-02-25 Thread Pradeep Goel
to help you . Regards Pradeep - Original Message - From: "Robert Citek" <[EMAIL PROTECTED]> To: "perl beginners" <[EMAIL PROTECTED]> Sent: Tuesday, February 25, 2003 11:00 AM Subject: system info: cpu, ram, disk > > Hello all, > > How can I find o

system info: cpu, ram, disk

2003-02-24 Thread Robert Citek
Hello all, How can I find out information about a system in a system-independent manner? I wrote a perl script that nicely displays information about a Linux system: # of cpus, cpu speed, size of RAM, # of disks, size of disks, IP address. The code uses the system() command and relies on the

RE: win 32 system info (TieRegistry etc) - functions/commands HE LP needed

2003-02-10 Thread Timothy Johnson
ADAM (SBCSI); Conor Lillis; Tillman, James; Javeed SAR; R. Joseph Newton Sent: 2/10/03 7:14 AM Subject: win 32 system info (TieRegistry etc) - functions/commands HELP needed Hi All First Of all - Thanks to everybody for the gr8 help we novices are receiving from you perl experts & sorry to

win 32 system info (TieRegistry etc) - functions/commands HELP needed

2003-02-10 Thread PRADEEP GOEL
istry can be used for most of them) . 2) whether for using TieRegistry for remote systems , do i need some permissions on remote system. ? Thanks & Regards Pradeep -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: system() in perl5.4 (dos version)

2003-02-07 Thread Rob Dixon
N. Ganesh Babu wrote: > Hi, > > When I execute a dos command with system() in perl5.4 (djgpp dos > version) it is not working. Can any one please help in executing the > dos commands in perl. Hi Ganesh. You should be able to say simply: my $result = system ("command&quo

system() in perl5.4 (dos version)

2003-02-07 Thread N. Ganesh Babu
Hi, When I execute a dos command with system() in perl5.4 (djgpp dos version) it is not working. Can any one please help in executing the dos commands in perl. Regards, Ganesh -- N. Ganesh Babu Asst. Production Manager Apex Logical Dataconversion Pvt. Ltd. 303 & 304 M.G.R. Estate Dwaraka

RE: system() call fails

2003-02-05 Thread yargo
I'd try : @MakeCmd = ("nmake", "-f", "Nmakefile.mak"); $rc = system(join " ",@MakeCmd); -Original Message- From: meriwether lewis [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 05, 2003 7:17 AM To: [EMAIL PROTECTED] Subject: syst

Re: system() call fails

2003-02-04 Thread km
try with : system("@MakeCmd"); KM On Wed, 5 Feb 2003, Jeff 'japhy' Pinyan wrote: > On Feb 4, meriwether lewis said: > > >The system() command in the following script is > >failing with a: "No such

Re: system() call fails

2003-02-04 Thread Jeff 'japhy' Pinyan
On Feb 4, meriwether lewis said: >The system() command in the following script is >failing with a: "No such file or directory" >error. What makes you think the system() call is failing? $! only holds a usable value if something goes wrong. Is $rc equal to 0 or not? Only

system() call fails

2003-02-04 Thread meriwether lewis
Hi Gurus! I'm running Perl 5.004_04 on Win2k. The system() command in the following script is failing with a: "No such file or directory" error. @MakeCmd = ("nmake", "-f", "Nmakefile.mak"); $rc = system(@MakeCmd); print "rc = $rc -> $!\

Re: System() function in 5.8

2003-01-30 Thread John W. Krahn
Ravinder Chauhan wrote: > > After installing Perl 5.8 my @files = system("dir bex*.* /od /b") function > has started behaving strange. Under 5.6 this function used to return the > list of files for matching files, however now in place of file list it is > returning

System() function in 5.8

2003-01-30 Thread Ravinder Chauhan
After installing Perl 5.8 my @files = system("dir bex*.* /od /b") function has started behaving strange. Under 5.6 this function used to return the list of files for matching files, however now in place of file list it is returning a number "65280". I would appreciate if some

Re: system call

2003-01-30 Thread km
0 at 12:38, jdavis wrote: > > hello, > > Could someont tell me the secure way > > to get input from a system call > > like... > > > > $date = `/bin/date`; > > > > or > > > > $client = `/usr/bin/finsmb`; >

Re: system call

2003-01-29 Thread John W. Krahn
Jdavis wrote: > > hello, Hello, > Could someont tell me the secure way > to get input from a system call > like... > > $date = `/bin/date`; > > or > > $client = `/usr/bin/finsmb`; The output from using backticks is just data and so is not inherently in

Re: system call

2003-01-29 Thread simran
not sure what you mean... but try: perldoc perlsec as a starting point... On Thu, 2003-01-30 at 12:38, jdavis wrote: > hello, > Could someont tell me the secure way > to get input from a system call > like... > > $date = `/bin/date`; > > or > > $client

system call

2003-01-29 Thread jdavis
hello, Could someont tell me the secure way to get input from a system call like... $date = `/bin/date`; or $client = `/usr/bin/finsmb`; TIA, -- jd [EMAIL PROTECTED] Bad spellers of the world untie! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: function system

2002-12-18 Thread Ramprasad
never rely on multiple system() to execute your commands in the same order It will be most advisable that If you really have to execute multiple UNIX commands then make a shell script of them and execute the shell script of course you can do this system("unix_comd1;unix_comd2;unix_

function system

2002-12-18 Thread Pedro Corcobado
I have a problem with the function system. I execute a source like this: programa.pl #!/opt/perl/bin/perl . . . . . . . sub funcion_monitor () { system("nohup funcion_halt &"); } sub funcion_halt () { syste

Re: HOWTO use system call on windows with a space in the path

2002-12-11 Thread Jenda Krynicky
From: Ken Lehman <[EMAIL PROTECTED]> > I would like to write a perl script for windows that in the right > situation fires off another program, the problem is I can't get it to > work using system or exec calls. The file is in the program files > directory I tried syste

HOWTO use system call on windows with a space in the path

2002-12-11 Thread Ken Lehman
I would like to write a perl script for windows that in the right situation fires off another program, the problem is I can't get it to work using system or exec calls. The file is in the program files directory I tried system("c:\program files\etc...") and some variations but I

check system integrity

2002-12-05 Thread Johnson, Shaunn
Howdy: Are there any perl-related scripts / apps to check a Linux system for attempted break-ins, password cracking, general hacking, ip spoofing, etc? Thanks! -X

Re[2]: System/Exec/Fork ... Help!

2002-11-19 Thread Evgeny Chuykov
ssing here) JF> multiple fork points to handle each different type of system I'm trying JF> to run ... JF> I *think* I can do it with a wrapper program that launches the new JF> program and reports back the pid, but that doesn't seem right to me ... JF> It seems that this is s

Re: System/Exec/Fork ... Help!

2002-11-19 Thread Jason Frisvold
Hrm.. didn't think of that ... *heh* Good idea ... I'm gonna use the Proc::Daemon module though .. seems to do exactly what I need without messing with forking directly... On Mon, 2002-11-18 at 21:29, Steve Grazzini wrote: > That's all more or less correct, but you're missing a fundamental >

Re: System/Exec/Fork ... Help!

2002-11-19 Thread Steve Grazzini
Jason Frisvold <[EMAIL PROTECTED]> wrote: > I'm writing a monitoring system (Yes, still... Finally got the > go-ahead to do this) and my design calls for a central "Smart" > Daemon that spawns and monitors the lesser Daemons that do the > actual monitoring. My

Re: System/Exec/Fork ... Help!

2002-11-19 Thread Jason Frisvold
f from the main program... So, if I call this with system(), the call returns immediately... I still have no "easy" way to return the PID of this new process, so I'm going to resort to a directory full of .pid files ... That, at least, will get me to the point where I can st

Re: System/Exec/Fork ... Help!

2002-11-19 Thread Jason Frisvold
But, if I go the way of the fork, the program cannot be broken down into lots of mini-programs which are designed to do a single job.. everything would have to be rolled into one larger program with (I'm guessing here) multiple fork points to handle each different type of system I'm try

Re: system function

2002-11-18 Thread Mark Goland
> system (('tunctl',-u,$buf) | ('awk',print,$2) ); you can also try this system ("tunctl,-u,$buf | awk,print,$2 " ); - Original Message - From: "Timothy Johnson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>

<    3   4   5   6   7   8   9   10   11   12   >