Opening new Aterm window from script


Forum: Programming and Scripting
Topic: Opening new Aterm window from script
started by: boconnor

Posted by boconnor on Jan. 03 2009,16:16
I have an application that needs to launch "hands-off" during startup: open a console window and execute a shell script upon startup. The window needs to remain open for status reporting and potential user interaction (the last script action is to start up an interactive Python application).

When testing the script, I can open Aterm after booting and invoke the script then all is fine. But I need to be able to open the window/shell session and invoke the script "hands-off" when DSL boots.

When I launch Aterm via xinitrc with "-e scriptname", I find that an Aterm window flashes open momentarily -- not long enough to execute the first stages of shell script.

So, how do I open an Aterm window upon system start, execute a script in that window, and have the window remain open in the foreground?

Any advice is most appreciated. Thanks.

  Brian

Posted by mikshaw on Jan. 03 2009,20:39
I've seen this question here before, and I don't think we ever came up with an ideal solution.

One thing you can do is add '/bin/bash' as the last command in your script, which will keep the terminal open, and provide you with a command prompt, but it will be a new shell rather than the same shell that ran the script.  I don't know if it will interfere with the original script.

Posted by chalbersma on Jan. 06 2009,21:14
Perhaps you could run the command directly, pipe the output to a text file then view it with a text reader?  Maybe that wouldn't work.  Give me some more details and I'll try to troubleshoot it.
Posted by Tobiaus on Jan. 10 2009,07:24
message removed
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.