[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] PERL: Udfør kommando og returner output



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tirsdag den 27. april 2004 14:28 skrev Frank Nørvig:
> Carsten Svaneborg wrote:
> >>Det sker dog ikke, sandsynligvis fordi at kommandoen returnerer direkte
> >>til konsol, i stedet for stdout.
> >
> > Måske kommer output til stderr istedet, og det er derfor du ikke ser det?
>
> Sandsynligvis, men hvordan kan jeg fange den?
>

Hej

uden at vide noget om perl så kunne det tænkes at dette vil fungere :

my $retur = `mtx -f $robot first 2>&1`;
print "Output:".$retur."\n";

mvh
Søren Holm

- -- 
http://sgh.dk    |                Linux
   SGH.DK        |    Where do you want to go tomorrow
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAjlNW90W9rQjZE/gRAuj6AJ0bmwJbJy2UskzTXRzKh3PURaj0XwCfRR/z
F5q0+XTKi3A8sXDa6d9FipE=
=SVDS
-----END PGP SIGNATURE-----


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 22:43 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *