WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Aterm -hold v1.00.01  (Read 107 times)

Offline edmazing

  • Newbie
  • *
  • Posts: 13
Aterm -hold v1.00.01
« on: March 14, 2026, 04:25:12 PM »
I was trying to open another terminal window to run a script, then pause after execution to allow the user to exit after seeing the status of the commands. Aterm has no -hold option. I tried the most simple thing I could think of
Code: [Select]
xterm -e 'sleep 5' as well as
Code: [Select]
xterm -e 'ls -a && read -p "Press Anykey..."' and some variations. While
Code: [Select]
read -p "Some example text" works in the primary terminal there doesn't seem to be a way I can find to spawn another terminal and have it stay open.

Is there a simple way to do this?
My solution is just to remove aterm.tcz and use xterm.tcz instead.

Offline CNK

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 425
Re: Aterm -hold v1.00.01
« Reply #1 on: March 14, 2026, 05:55:58 PM »
Try removing the quotes. It's looking for a command named "sleep 5" instead of running the "sleep" command with "5" as an argument:

Code: [Select]
$ aterm -e sleep 5

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 12640
Re: Aterm -hold v1.00.01
« Reply #2 on: March 14, 2026, 08:44:51 PM »
Hi edmazing
This seems to work:
Code: [Select]
/usr/local/bin/aterm -e sh -c "MyScript.sh; exec sh" &For some reason  aterm  doesn't recognize command line switches
if called without a full path on my TC10 x86 system.

The aterm.tcz extension also includes an xterm link which worked for me:
Code: [Select]
xterm -e sh -c "MyScript.sh; exec sh" &