[Gambas-user] watch+fclock = Error opening terminal: unknown.

Jussi Lahtinen jussi.lahtinen at ...626...
Sat Apr 6 01:03:04 CEST 2013


Same error with my system, when using this piece of code (but of course the
error message is not visible without handling
_Read event):

Shell "watch echo 'test'" For Input Output As "Process"


Jussi



On Sat, Apr 6, 2013 at 1:47 AM, Benoît Minisini <
gambas at ...1...> wrote:

> Le 06/04/2013 00:14, abbat81 a écrit :
> > It's is to difficult.
> >
> > But can be  much easy.
> >
> > All I need is to start my application again if it will be closed. Nothing
> > more to INPUT/OUTPUT.
> >
> > A working command is:
> > "watch flock -n /home/user/Shell.lock /home/user/Onix_Shell.gambas"
> >
> > But it works only in terminal, not in Gambas:
> >   Shell "watch flock -n /home/user/Shell.lock
> /home/user/Onix_Shell.gambas"
> >
> > I do not understand, why I get "Error opening terminal: unknown."
> >
> > Anyway, if "watch" can't watch for my application to be running, the easy
> > way to do it is new watch.gambas
> > with:
> >
> > Public Sub Timer1_Timer()
> >    Shell "flock -n /home/user/Shell.lock /home/user/Onix_Shell.gambas"
> > End
> >
>
> OK, but please read the documentation: "FOR INPUT OUTPUT" is not just
> for watching process i/o. It tells Gambas to run the executed program in
> a virtual terminal, which may be needed according to the error message
> you get.
>
> Regards,
>
> --
> Benoît Minisini
>
>
> ------------------------------------------------------------------------------
> Minimize network downtime and maximize team effectiveness.
> Reduce network management and security costs.Learn how to hire
> the most talented Cisco Certified professionals. Visit the
> Employer Resources Portal
> http://www.cisco.com/web/learning/employer_resources/index.html
> _______________________________________________
> 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