[Gambas-user] EXEC output advice needed

Sebastian Kulesz sebikul at ...626...
Mon Jan 28 17:28:35 CET 2013


Redirection is a shell feature, so a system call via exec won't support it.

On 1/28/13, Ivan Williams <ivanwms64 at ...43...> wrote:
> Bill
>
> have you tried SHELL/
>
>
>  'SHELL "mysql -u root -pmypassword archive <
> /home/bill/GambasFolder/mysql/BackUpOfarchive.sql" &
> '" -O " & WAIT
>
>
>
> Ivan    \~/
>
>
> I never saw a wild thing sorry for itself.
> A small bird will drop frozen dead from a bough
> Without ever having felt sorry for itself.
> -- D.H. Lawrence
>
>
> http://www.usconstitution.net/const.html
>
> Linux - Live Free or Die.
>
>
>
> ________________________________
>  From: bill-lancaster <bill-lancaster at ...2231...>
> To: gambas-user at lists.sourceforge.net
> Sent: Monday, January 28, 2013 10:59 AM
> Subject: [Gambas-user] EXEC output advice needed
>
> I've tried to make a Gambas front end for a mysql restore.
> Instead of running code in a terminal I want to use the EXEC function in
> Gambas.
> This code works in terminal:-
>
> mysql -u root -pmypassword archive <
> /home/bill/GambasFolder/mysql/BackUpOfarchive.sql
>
> But when this code is run from Gambas:-
>
> Exec ["mysql", "-u", "root", "-pmypassword", txbDbName.Text, "<",
> FileChooser1.Value]
>
> nothing happens, the result shown in the Gambas terminal indicates that the
> EXEC function failed.
>
> Is there a way to see exactly what instructions were passed to mysql
> through
> the EXEC call?
>
>
>
>
> --
> View this message in context:
> http://gambas.8142.n7.nabble.com/EXEC-output-advice-needed-tp40855.html
> Sent from the gambas-user mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnnow-d2d
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnnow-d2d
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


-- 
*Sebi Kulesz*




More information about the User mailing list