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
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
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
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
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
- 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
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
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: $
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
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,
> "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
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
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 |"
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
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
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]
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
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
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
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
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
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
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,
/* 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"], [/*
--- 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
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
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
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
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
> >
>
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
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(".."
[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
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 "
> 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
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?
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
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
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?
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
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
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
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'
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.
> >
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
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
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
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.
[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.
[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
>
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]
@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
> 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]
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
[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
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
[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
[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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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]
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
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
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
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
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
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 -> $!\
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
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
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`;
>
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
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
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
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_
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
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
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
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
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
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
>
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
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
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
> 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]>
701 - 800 of 1202 matches
Mail list logo