Non blocking Topaz execution

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Non blocking Topaz execution

GLASS mailing list
Hi,

Executing a Topaz session will block Linux terminal if it something like:
[true] while: [do something]

I know is possible because starting Seaside Gem does not block the Linux
terminal.

But for now i was not able  to do it with others scripts.

From this list there is this information:
/*Don't forget that you can fork the Topaz process in the shell with "&".*/

But how to use "&" to fork a Topaz process ? (i found nothing about it in
Topaz manual).

Still searching...

regards,
bruno



--
Sent from: http://forum.world.st/GLASS-f1460844.html
_______________________________________________
Glass mailing list
[hidden email]
https://lists.gemtalksystems.com/mailman/listinfo/glass
Reply | Threaded
Open this post in threaded view
|

Re: Non blocking Topaz execution

GLASS mailing list
Bruno,

Here's an example of running topaz with "&"[1]. It is used to launch
topaz seaside servers.

Dale

[1]
https://github.com/GsDevKit/gsApplicationTools/blob/master/bin/startGemServerGem

On 10/31/19 10:48 AM, BrunoBB via Glass wrote:

> Hi,
>
> Executing a Topaz session will block Linux terminal if it something like:
> [true] while: [do something]
>
> I know is possible because starting Seaside Gem does not block the Linux
> terminal.
>
> But for now i was not able  to do it with others scripts.
>
>  From this list there is this information:
> /*Don't forget that you can fork the Topaz process in the shell with "&".*/
>
> But how to use "&" to fork a Topaz process ? (i found nothing about it in
> Topaz manual).
>
> Still searching...
>
> regards,
> bruno
>
>
>
> --
> Sent from: http://forum.world.st/GLASS-f1460844.html
> _______________________________________________
> Glass mailing list
> [hidden email]
> https://lists.gemtalksystems.com/mailman/listinfo/glass
_______________________________________________
Glass mailing list
[hidden email]
https://lists.gemtalksystems.com/mailman/listinfo/glass
Reply | Threaded
Open this post in threaded view
|

Re: Non blocking Topaz execution

GLASS mailing list
Dale,

Excellent !

The scripts are already working as nonblocking.

regards,
bruno



--
Sent from: http://forum.world.st/GLASS-f1460844.html
_______________________________________________
Glass mailing list
[hidden email]
https://lists.gemtalksystems.com/mailman/listinfo/glass
Reply | Threaded
Open this post in threaded view
|

Re: Non blocking Topaz execution

GLASS mailing list
Hi,

This is useful information from Kurt Kilpela:
The character & has special meaning in bash (and other shells.) It tells the
shell to execute the command in the background. This is not a specific
feature of topaz.

If you run a command with &, stdout/stderror are configured to print in the
terminal. Also, closing the terminal will result in the background process's
termination. To prevent this, you can use the 'nohup' command.

```bash
nohup topaz arg1 arg2 &
```

This will redirect stdout/stderror to a file called 'nohup.out'. Closing the
terminal will allow the background process to continue running.

regards,
bruno



--
Sent from: http://forum.world.st/GLASS-f1460844.html
_______________________________________________
Glass mailing list
[hidden email]
https://lists.gemtalksystems.com/mailman/listinfo/glass