AW: [Gambas-user] Redirect to NULL with EXEC
Matthias Laur
matthias-laur at ...978...
Wed Aug 24 08:31:08 CEST 2005
Hi Paul,
I think the ">" command need a shell. With the command EXEC you have no
shell. Try:
SHELL "mount /harddriv > NULL" WAIT
Regards,
Matthias
-----Ursprüngliche Nachricht-----
Von: gambas-user-admin at lists.sourceforge.net
[mailto:gambas-user-admin at lists.sourceforge.net] Im Auftrag von A Person
Gesendet: Mittwoch, 24. August 2005 04:55
An: gambas-user at lists.sourceforge.net
Betreff: [Gambas-user] Redirect to NULL with EXEC
Wednesday, 24 August 2005
Good Day All . . .
Can someone point me in the right direction with a problem that I have
while using 1.0.10.
I want to use the EXEC command along with the redirect >NULL so that
some messages do not appear in the console window.
I have tried
EXEC [ "mount", "/harddrive" ] WAIT >NULL and
EXEC [ "mount", "/harddrive >NULL" ] WAIT and
EXEC [ "mount /harddrive", ">NULL" ] WAIT
but none work. All generate internal procedural errors.
I intend to mount a drive as root but first unmount it if already
mounted by a user. The 'nice to know' console messages read like,
"according to mtab the hard drive is not already mounted." These display
when the hard drive is unmounted and not already mounted.
I tried the error handling procedure TRY but the console messages still
display. They do not appear to be error messages but nice to know stuff.
Or
Can someone tell me a better way?
The whole program depends upon a solution. Later in the program, I
intend to use the EXEC cp command along with the >> redirect to send the
recursive copy info to a log file.
Thanks.
Paul
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
More information about the User
mailing list