[Perl-unix-users] Perl output different in crontab(Continue)

2002-10-09 Thread P.V.Sankar
Hi, This is continuation of my earlier mail ,accidentally my mail box got deleted, Can you please post your suggestions once again. I have written a perl script for executing .html & .pl files.If i run this perl script from command prompt ,it is producing the desired output.But the same fil

Re: [PMX:#] RE: [Perl-unix-users] a way to put contents of variableat comman d prompt and pip it to some other command

2002-10-09 Thread $Bill Luebkert
Manish Tiwari wrote: > Thanx Brian and Bill > > one approach > > Actually this code is in a subroutine that returns a list of files in a > path name supplied as an argument to this subroutine > > i have to do to get list of files > > @data = `ls -ltr | grep -v total | sort +8` ; > > now $? re

[PMX:#] RE: [Perl-unix-users] a way to put contents of variable at command prompt and pip it to some other command

2002-10-09 Thread Manish Tiwari
Title: RE: [Perl-unix-users] a way to put contents of variable at command prompt and pip it to some other command Thanx Brian and Bill one approach Actually this code is in a subroutine that returns a list of files in a path name supplied as an argument to this subroutine i have to do t

Re: [Perl-unix-users] a way to put contents of variable at commandprompt and pip it to some other command

2002-10-09 Thread $Bill Luebkert
Manish Tiwari wrote: > Hi > > i was trying to do something like > > @data = `ls -ltr ` ; > > < do some operation check whether ls command actually worked> > > now i want to pass the contents of "data" thru unix commands like egrep > and sort > > > so in all operation will be like > > ls -l

Re: [Perl-unix-users] a way to put contents of variable at command prompt and pip it to some other command

2002-10-09 Thread Brian Noble
On Wed Oct 09, 2002 at 02:23:22PM -0700, Manish Tiwari wrote: > Hi > > i was trying to do something like > > @data = `ls -ltr ` ; how about, if defined(@data = `ls -ltr`){ block of code } > > < do some operation check whether ls command actually worked> > > now i want to pass the conte

[Perl-unix-users] a way to put contents of variable at command prompt and pip it tosome other command

2002-10-09 Thread Manish Tiwari
Title: a way to put contents of variable at command prompt and pip it to some other command Hi i was trying to do something like @data = "`ls" -ltr ` ; < do some operation check whether ls command actually worked> now i want to pass the contents of "data" thru unix commands like egre

RE: [Perl-unix-users] Perl output different in crontab

2002-10-09 Thread BWilson
If you are running from the command line and your shell environment points to a version of perl that you have installed ( i.e. /opt/perl/5.6.1/bin ), you may have problems in crontab because whichever .profile script you are using will not be sourced when cron runs the job. For example, if you we

RE: [Perl-unix-users] FW: Com DLL

2002-10-09 Thread Mundell, R. \(Ronald\)
Title: RE: [Perl-unix-users] FW: Com DLL Thanx Next Question! Is it possible to host that script on the unix server and then execute it via a browser "CGI script" on the client side Ronald -Original Message- From: Jenda Krynicky [mailto:[EMAIL PROTECTED]] Sent: 09 October 2002 0

RE: [Perl-unix-users] FW: Com DLL

2002-10-09 Thread Jenda Krynicky
"Mundell, R. \(Ronald\)" <[EMAIL PROTECTED]> wrote: > Have you done something like this before? > > -Original Message- > From: Jenda Krynicky [mailto:[EMAIL PROTECTED]] > I'm afraid you will have to run one script under unix and another > under Windows. The Windows one will load the DLL

RE: [Perl-unix-users] FW: Com DLL

2002-10-09 Thread Mundell, R. \(Ronald\)
Title: RE: [Perl-unix-users] FW: Com DLL Have you done something like this before? -Original Message- From: Jenda Krynicky [mailto:[EMAIL PROTECTED]] Sent: 09 October 2002 02:51 PM To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]' Subject: Re: [Perl-unix-users] FW: Com DLL > I am tryin

Re: [Perl-unix-users] FW: Com DLL

2002-10-09 Thread Jenda Krynicky
> I am trying to load a Microsoft DLL via a Perl CGI script out of UNIX; > I am trying to make use of a WEB page to access a specific DLL on the > MS side. If any body knows how to load a MS COM DLL under these > circumstances please could you give me an idea of how to get this > working? I unders

[Perl-unix-users] Perl output different in crontab

2002-10-09 Thread P.V.Sankar
Hi, I have written a perl script for executing .html & .pl files.If i run this perl script from command prompt ,it is producing the desired output.But the same file if i put in crontab , it is getting executed ,but it is not producing the desired output.My crontab file is as follows. 5,10,15,20

[Perl-unix-users] FW: Com DLL

2002-10-09 Thread Mundell, R. \(Ronald\)
Good day All   I am trying to load a Microsoft DLL via a Perl CGI script out of UNIX; I am trying to make use of a WEB page to access a specific DLL on the MS side. If any body knows how to load a MS COM DLL under these circumstances please could you give me an idea of how to get this wor