RE: Calling bash things inside perl script.

2007-04-02 Thread Nath, Alok (STSD)
Hi, I tried something like this : Shell script : #!/bin/bash test() { echo "test:Inside tests.sh..." } export -f test Perl Script : #!/usr/bin/perl -w use strict ; print "Test main

Re: Calling bash things inside perl script.

2007-04-02 Thread D. Bolliger
Nath, Alok (STSD) am Dienstag, 3. April 2007 07:03: > Hi, > Before starting my problem I just want to thank all the active > members > who had literally mentored me in learning perl. > > I have bunch of this bash scripts which has lot of functions. > I wanted to call and use them in a perl script.I

Re: Calling bash things inside perl script.

2007-04-02 Thread D. Bolliger
D. Bolliger am Dienstag, 3. April 2007 07:56: > Nath, Alok (STSD) am Dienstag, 3. April 2007 07:03: > > Hi, > > Before starting my problem I just want to thank all the active > > members > > who had literally mentored me in learning perl. > > > > I have bunch of this bash scripts which has lot of f

Re: Calling bash things inside perl script.

2007-04-03 Thread Ken Foskey
On Tue, 2007-04-03 at 10:33 +0530, Nath, Alok (STSD) wrote: > Hi, > Before starting my problem I just want to thank all the active > members > who had literally mentored me in learning perl. > > I have bunch of this bash scripts which has lot of functions. > I wanted to cal

Re: Calling bash things inside perl script.

2007-04-03 Thread Rodrick Brown
Instead of making spaghetti just rewrite the entire script in Perl On 4/3/07, Nath, Alok (STSD) <[EMAIL PROTECTED]> wrote: Hi, Before starting my problem I just want to thank all the active members who had literally mentored me in learning perl. I have bunch of this bash sc

RE: Calling bash things inside perl script.

2007-04-03 Thread Andrew Curry
If you cant rewite them due to constraints etc.. Then just use system or `` depending on if you want to test the return values. -On 4/3/07, Nath, Alok (STSD) <[EMAIL PROTECTED]> wrote: > Hi, >Before starting my problem I just want to thank all the active > members >who had litera