Hello, Adam Theo here;
Just to note, this is cross-posted to the Perl-XML and Beginners
mailing lists, since i share the same message to both of them. sorry
if this inconveniences anyone.
I'd again like to thank everyone on these lists, especially:
Mr McLean for his huge help in my understandin
test
> Hi, I'm getting a syntax error on the following
> command
>
> $PIDS=`ps -ef | grep $user | grep -v grep | cut -b
> 10-14`
You're missing the semi-colon (;) at the end?
Also be aware that threads are currently considered experimental and can
break under certain circumstances. As rare as those might be, no-one will
claim they have no chance of occurring. Translation: don't use this for an
air traffic control system or a cardiac monitoring system.
(If you do
It might help to know what the error is saying and maybe some surrounding
code but my first reaction is that $user has a \n in it that need to be
chomped.
Also, don't you want @PIDS?
Peter C.
> Hi, I'm getting a syntax error on the following
> command
>
> $PIDS=`ps -ef | grep $user | grep -v g
Hi, I'm getting a syntax error on the following
command
$PIDS=`ps -ef | grep $user | grep -v grep | cut -b
10-14`
Please help. I need to get the process id of $user
and assign it to PIDS, then kill it.
thanks,
=
Peter Lemus
UNIX/NT Networks Engineer
[EMAIL PROTECTED]
--This world is too
> hello,
>
> i did the following in a script in accordance to perlthrtut
> to find out the posibility to use threads and the answer was "We do not
> have threads"
probably true.
to see what your perl was configured with do a
perl -V
> #!/usr/bin/perl
> use Config;
> if($Config{usethreads}){
hello,
i did the following in a script in accordance to perlthrtut
to find out the posibility to use threads and the answer was "We do not
have threads"
#!/usr/bin/perl
use Config;
if($Config{usethreads}){
print "We have threads\n";
}else{
print "We do not have threads\n";
}
the
Ronald,
I know that this doesn't directly anwswer your question but chapter 18 of
Lincon Stein's "Network Programming with perl" is all about UDP servers. I
am not quit ethere yet so I really cannot help you but that might give you
a clue.
David
On Fri, 25 May 2001 08:47:13 "Yacketta,Ronald J" wro
--- Jeff Pinyan <[EMAIL PROTECTED]> wrote:
> On May 25, Keith A. Humphrey said:
>
> >Is there a perl command that can tell me the age of a file?
>
> Not on Unix. You might be able to get a Windows or Mac specific
> module to get the creation date of a file on those systems, but Unix
> does not
On Fri, 25 May 2001, Keith A. Humphrey wrote:
> Is there a perl command that can tell me the age of a file?
-M age since last modification, in days
-C age since last access, in days
-A age since last inode change in days
Note that these return the age at the time your script ran. You should
se
On May 25, Keith A. Humphrey said:
>Is there a perl command that can tell me the age of a file?
Not on Unix. You might be able to get a Windows or Mac specific module to
get the creation date of a file on those systems, but Unix does not store
the creation date of a file -- you can, however, ge
Is there a perl command that can tell me the age of a file?
Keith Humphrey
Software Engineer
NetRail, Inc.
1-888-NETRAIL ext. 4215
Darn it, beat me to the punch
I just saw his question and was reading the chapter when I saw your post...
-Original Message-
From: Brett W. McCoy [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 25, 2001 3:04 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: hiding logins at prompt
On Fri, May 25, 2001 at 02:54:36PM -0400, [EMAIL PROTECTED] wrote:
:
: Hi,
:
: I've got a Perl script that logs into one of our applications as Admin. I
: didn't want to hard code in the password, so I'm prompting for it. I was
: looking for a way to hide the input, just like when you log into
On Fri, 25 May 2001 [EMAIL PROTECTED] wrote:
> I've got a Perl script that logs into one of our applications as Admin. I
> didn't want to hard code in the password, so I'm prompting for it. I was
> looking for a way to hide the input, just like when you log into a Unix or NT
> box. I was hopin
Hi,
I've got a Perl script that logs into one of our applications as Admin. I
didn't want to hard code in the password, so I'm prompting for it. I was
looking for a way to hide the input, just like when you log into a Unix or NT
box. I was hoping to either have the actual input chars replaced
Craig Moynes wrote:
: $params{f} = "%E %e %d";
: output:
: %E %e %d
: %d
:
: So %e is not found
:
: $params{f} = "%d %e";
: output:
: %d %e
: %e
I can't reproduce this error with the code you posted.
Here's the script I tried:
#!/faxafloi/data1/bin/perl
use Getopt::Std;
use strict;
my @ma
On Fri, May 25, 2001 at 11:43:21AM -0400, Craig Moynes/Markham/IBM wrote:
> I have the following regexp:
>
> @matches = $params{f} =~ /(%[aAbBcCdDehHIjmMnprStTuUVwWyY%])/g;
>
> If I have a script:
>
> [snip]
> my @matches;
> my ( %params );
> getopts('DRSa:f:s:d:r:b:w:n:h?', \%params);
>
> pri
Geraint Jones wrote:
: "ndbm store returned -1, errno 0, key "C4842AE" at
: /usr/local/httpd/cgi-bin/ism-web.pl line 49."
:
: This is the offending line:
:
: $STOCK{$act_on} += $val;
Does the user that your CGI script runs as have write permission
on the dbm file?
-- tdk
Folks,
I have been searching for a udp redirector that would be used to gather udp
packets on
a single ip:port and then redirect to multiple ip:port combinations.
A little diag of what I am searching for:
server 1 ||---
utility 1
server
I have the following regexp:
@matches = $params{f} =~ /(%[aAbBcCdDehHIjmMnprStTuUVwWyY%])/g;
If I have a script:
[snip]
my @matches;
my ( %params );
getopts('DRSa:f:s:d:r:b:w:n:h?', \%params);
print "$params{f}\n";
print "@matches\n";
[snip]
I am passing -f "some string" in on the command lin
Dear All
I am getting a small problem in PERL programming.I am Getting error code 123
if i try to install a serive on a remote system using perl using
Win32::AdminMisc.
&
I am not able to logon to the remote system as a user
My purpose is to create a process on a remote system by logging as
Hm...
from your output:
`sh cflags hash.o` -DPERL_FOR_X2P hash.c
CCCMD = -c
/config.sh: File or directory doesn't exist
1) This first line looks messed up; unless 'cflags' is a shell script which
returns something like 'gcc -o hash.o' I don't think you will be compilin'.
2) If
Hi,
I'm having a make problem with the x2p directory.
I get a file not found error, but I'm not sure which file !
hash.h and hash.c are in the directory, and I even made
a link to config.sh in the same directory with no results.
Any hints ?
I have included part of the make file (-d) output.
GN
The 'man page' is a bit vague:
ascii Set the file transfer type to network ASCII. This is the default
type.
binary Set the file transfer type to support binary image transfer.
however, we know that if you were to translate characters in executable
files that could be interprete
Lightning flashed, thunder crashed and "Rivera Alonso, David" whispered:
| I hope you won't hate me for this:
|
| after installing all the ".h" files under /usr/include, it goes much better,
| but I still have strange warning: when I say "make" it gives an error:
|
| "gcc: installation problem,
Lightning flashed, thunder crashed and "baby lakshmi" <[EMAIL PROTECTED]
> whispered:
| hi
| while doing ftp from windows to unix, the file contains ctl M at the end of
| each line. my file is a huge data file. i am not able to delete that. is
| there any better way to delete it.
| If anyone can
Oops.
'bin' means BINARY mode and the intent is that NO translation takes place.
BINARY mode should be used for files that would be messed up by EOL
translation.
Like executables, tar or ZIP files, jpep, etc.
ASCII means "please move my file, but translate the EOL appropriate to the
system receiv
Here's one I like... (for removing evil ctrl M's)
perl -w -i -p -e "s/\x0d//g" filename
Stephen Neu
Internet Development
Characterlink.net
(630) 323-9800 ext. 235
#!/usr/bin/perl
#JustAnotherPerlHacker
($, ,@j15)=('t','Kvt' ,' Bop','ifs',
' Q', 'sm Ibdl' ,'s') ;foreach
( @j15){ tr/B-Zb-
How 'bout ftp in ASCII mode.
I recon' that's what it's for.
Greg
-Original Message-
From: baby lakshmi [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 25, 2001 1:50 AM
To: [EMAIL PROTECTED]
Subject: reg ftp
hi
while doing ftp from windows to unix, the file contains ctl M at the end of
eac
On Fri, 25 May 2001, baby lakshmi wrote:
> while doing ftp from windows to unix, the file contains ctl M at the end of
> each line. my file is a huge data file. i am not able to delete that. is
> there any better way to delete it.
Use Perl to do it:
perl -pi.bak -e 's/\cM//g' filename1 filename
Hello folks,
I get the error below in my CGI script which is a small database app.
I am using NDBM_File and am 99% certain that everything is correct because I
first wrote the script without using CGI and it worked perfectly. The
following is that uncertain 1%:
"ndbm store returned -1, errno 0
- Original Message -
From: justin todd <[EMAIL PROTECTED]>
To: Beginners (E-mail) <[EMAIL PROTECTED]>
Sent: Friday, May 25, 2001 10:18 AM
Subject: DB
> Hi.
>
(...)
In short: Your webserver doesn't connect to your DB server.
Basically this had nothing to do with the NT Domain trusting an
Hi all,
I'm new to the list and usually like to lurk for a while before asking
questions but I've been faced with a problem which I'm struggling to find an
answer.
Can someone supply help or a URL to help me connecting to an NT server?
Basically I want to connect to several servers over the inte
On Fri, 25 May 2001, baby lakshmi <[EMAIL PROTECTED]> wrote,
> hi
> while doing ftp from windows to unix, the file contains ctl M at the end of
> each line. my file is a huge data file. i am not able to delete that. is
> there any better way to delete it.
If you have access to that unix machin
If you use ftp in text mode, it should add the ^M when going towards
windows and remove it when going away. This *should* be automatic.
If this doesn't work, then you can handle it in your perl script.
Instead of using chomp to remove the from the end of your line, use
$line=~s/[\r\n]+$//;
hi
thank you for ur mail. i have given bin while ftping it. still i am getting
the same problem.
Thank you
regards
babylakshmi
>From: "Antonio Greco" <[EMAIL PROTECTED]>
>To: "baby lakshmi" <[EMAIL PROTECTED]>
>Subject: Re: reg ftp
>Date: Fri, 25 May 2001 10:26:38 +0200
>
>hi
>
>try setting "bi
This sounds like a logrotate problem.
Do you have logrotate controlling this log file.
I may be wrong, but I think if you have the file open when logrotate
kicks in, you filehandle will stay on the same file. i.e.
you open /var/log/maillog
logrotate removes /var/log/maillog.4
it then renames 3
Hi.
This is my problem, I am to short. But there is nothing that can be done
about that but maybe you all can help me out with this.
I have a NT4.0 IIS web server which hosts and executes my Perl scripts.
On a different machine and on a different domain I have a MSSQL7
database server in which I
I hope you won't hate me for this:
after installing all the ".h" files under /usr/include, it goes much better,
but I still have strange warning: when I say "make" it gives an error:
"gcc: installation problem, cannot exec `as': No such file or directory
make: *** [Parser.o] Error 1"
if you can
41 matches
Mail list logo