Article View: es.comp.os.linux.programacion
Article #9587Re: ejecutar comando desde un programa
From: {EiRoN}
Date: Thu, 13 Jun 2002 18:37
Date: Thu, 13 Jun 2002 18:37
29 lines
1688 bytes
1688 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, 13 Jun 2002 15:47:09 +0200, [ZoRo] wrote:
> alguien me peude decir que opcion tengo que poner al sh para ejecutar , por
> ejemplo, un ls o cualquier otro comando?
> es decir /bin/sh ---noseque-- ls
/bin/sh -c ls
En el caso de BASH, dependera del tipo de shell que tengas
instalada, consulta el manual :-)
>
> Muchas gracias
No hay de que
- --
- - Andres J. Diaz "{EiRoN}" <eiron@phreaker.net> -
- - The Nexus Zone Networking Departament -
- - KeyID: 0x0FC56BAA in x-hkp://pgp.rediris.es -
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9CObbf9QmLQ/Fa6oRAi2BAJ9jDjwqUTH7flzZz/j3O1VnI18AhQCgvxXA
GSV/YYzPPwWGyb/RtvNs9Eg=
=/ASq
-----END PGP SIGNATURE-----
Technical Details
Message-ID:
<slrnaghpmh.2v1.eiron@hermes.thenexuszone.ods.org>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!193.174.75.178!news-fra1.dfn.de!fu-berlin.de!uni-berlin.de!cm97184.red.mundo-r.COM!not-for-mailReferences:
<aea7ur$5a8np$1@ID-59646.news.dfncis.de>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII-7-bit
X-Google-Thread: f86c8,545c8177cbd25209
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-06-13 11:37:15 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!193.174.75.178!news-fra1.dfn.de!fu-berlin.de!uni-berlin.de!cm97184.red.mundo-r.COM!not-for-mail
From: {EiRoN} <eiron@phreaker.net>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: ejecutar comando desde un programa
Date: 13 Jun 2002 18:37:14 GMT
Organization: The Nexus Zone
Lines: 29
Message-ID: <slrnaghpmh.2v1.eiron@hermes.thenexuszone.ods.org>
References: <aea7ur$5a8np$1@ID-59646.news.dfncis.de>
Reply-To: eiron@phreaker.net
NNTP-Posting-Host: cm97184.red.mundo-r.com (213.60.97.184)
X-Trace: fu-berlin.de 1023993434 5825407 213.60.97.184 (16 [147002])
X-Editor: Vim-601
User-Agent: slrn/0.9.7.4 (Linux)