Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

192.168.1.41:8000, Www.xxxcon., %s wwwxxxcon, %s wwwxxxcon, www.xxxcon, xxxxdup, bitlord outgoing port settings, ckowwwxxx, 192.168.1.41:8000/nor-482.html, php.ini "Unable to initialize module"

Links

XODOX
Impressum

#1: exec

Posted on 2008-01-28 16:39:08 by Floor

I would like to run a specific unix in a perl script. Would that be safier
than running it from within a php script?

--
Floor

Report this message

#2: Re: exec

Posted on 2008-01-28 19:29:37 by Jim Gibson

In article <479df71c$0$85784$e4fe514c@news.xs4all.nl>, Floor
<Floor@yahooh.co.not> wrote:

> I would like to run a specific unix in a perl script. Would that be safier
> than running it from within a php script?

I'm sorry, but I don't understand what you mean by "run a specific unix
in a perl script". Can you explain?

--
Jim Gibson

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

Report this message

#3: Re: exec

Posted on 2008-01-29 13:44:08 by Floor

Jim Gibson:

> I'm sorry, but I don't understand what you mean by "run a specific unix
> in a perl script". Can you explain?

Sorry, typo; I mean that I would like to run a unix script in Perl; not a
'who' of 'pwd' command, but a script in which I do several cat's to a
document. Does a Perl source have a certain exec program part? I did the
command, but without any result...

thanks,
--
Floor

Report this message

#4: Re: exec

Posted on 2008-01-29 20:26:11 by Jim Gibson

In article <479f1f98$0$85792$e4fe514c@news.xs4all.nl>, Floor
<Floor@yahooh.co.not> wrote:

> Jim Gibson:
>
> > I'm sorry, but I don't understand what you mean by "run a specific unix
> > in a perl script". Can you explain?
>
> Sorry, typo; I mean that I would like to run a unix script in Perl; not a
> 'who' of 'pwd' command, but a script in which I do several cat's to a
> document. Does a Perl source have a certain exec program part? I did the
> command, but without any result...

How about posting a short script that demonstrates the problem you are
having?

You can certainly execute a Unix shell script from a Perl program. Use
the system function or backtics (``) or the qx() operator, depending
upon if you wish to capture the standard output of the command you are
running.

See 'perldoc -f system' for details.

I do not understand your question "Does a Perl source have a certain
exec program part?". A Perl program is compiled and interpreted by the
Perl interpreter. The executable part of a Perl program is in memory at
the time of execution.

Perl has the 'exec' function, but I don't think that is what you are
asking about.

--
Jim Gibson

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

Report this message