El 31/05/13 08:15, Kende Krisztián escribió: > Thu, 30 May 2013 23:50:30 +0200 -n > Jesus <ea7...@ea7dfh.com> írta: > >> El 30/05/13 21:35, Kende Krisztián escribió: >>> An interesting example, why do not you use native methods? >>> >>> Dim item As String >>> >>> For Each item In Dir(User.Home).Sort() >>> >>> With Stat(User.Home & "/" & item) >>> >>> Print .Auth & " " & .User & " " & .Group & " " & .Size & " " >>> & .LastModified & " " & item >>> >>> End With >>> >>> Next >>> >>> >>>> Hi all >>>> >>>> AFAIR this used to work until now: >>>> >>>> Shell "ls -la" To variable >>>> Exec ["ls", "-la"] To anothervariable >>>> >>>> But now, whatever command I use, if it has one or more arguments >>>> beginning with a dash or double dash, I don't get any output. >>>> >>>> Quoting it with Shell$() function does not help. Also, I've tried >>>> using process reading, to no avail. >>>> >>>> If you would issue the command without arguments, it then works >>>> fine. >>>> >>>> Is this a bug, or am I doing something wrong? >>>> >>>> Regards >>>> >>>> Gambas 3.4.90 r5682 >>>> >> >> That's not the case. What I wanted to point out is why some commands >> does not work when some arguments are given. Obviously, my first >> example is pointless. >> >> Have you tested the following? >> >> Shell "ifconfig --help" To somevar >> >> Why this does not return anything? >> >> Regards > > It's works: > > Shell "ifconfig --help 2>&1" To somevar > > but stderr cannot be seen. >
Hi, Kende and Jussi Thanks for your clarifications. I should have realized about stderr. Regards -- Jesus Guardon ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2 _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user