Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Opening new Aterm window from script, to monitor an "appliance" application< Next Oldest | Next Newest >
boconnor Offline





Group: Members
Posts: 1
Joined: Dec. 2008
Posted: Jan. 03 2009,16:16 QUOTE

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
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Jan. 03 2009,20:39 QUOTE

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.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
chalbersma Offline





Group: Members
Posts: 12
Joined: Sep. 2008
Posted: Jan. 06 2009,21:14 QUOTE

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.
Back to top
Profile PM 
Tobiaus Offline





Group: Awaiting Authorisation
Posts: 47
Joined: Dec. 2008
Posted: Jan. 10 2009,07:24 QUOTE

message removed
Back to top
Profile PM 
3 replies since Jan. 03 2009,16:16 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Opening new Aterm window from script

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code