Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-05-2009, 12:47 PM   #1
LQ Newbie
Registered: Jan 2009
Location: /dev/null
Distribution: Gentoo Linux, Backtrack
Posts: 2

Rep: Reputation: 0
Eterm / Xterm / aterm behavior

Hi, I am by no means a Linux newbie however since its my first post here I felt I should post in the newbie section. So heres my issue which is really quite trivial but I cant seem to figure it out. I help out on a linux distro and we offer 2 desk top choices KDE and a light weight window manager. So in the past on the window manager we have used xterm and it has worked like this..

I will use nmap as a example. If I use xterm in my menu I can do this..

xterm -e "nmap -h ; sudo -s"

and it will open a xterm shell, run the command and return to prompt while leaving the shell open.
 Nmap 4.76 ( )
Usage: nmap [Scan Type(s)] [Options] {target specification}
....Scanning and Traceroute
  --datadir <dirname>: Specify custom Nmap data file location
  --send-eth/--send-ip: Send using raw ethernet frames or IP packets
  --privileged: Assume that the user is fully privileged
  --unprivileged: Assume the user lacks raw socket privileges
  -V: Print version number
  -h: Print this help summary page.
  nmap -v -A
  nmap -v -sP
  nmap -v -iR 10000 -PN -p 80
localhost ~ #
The important part is that it leaves the shell open and at the prompt again so now the user can enter the nmap commands.

So my problem is we are now going to use Eterm or aterm and I cannot get those terms to behave in the same manner

Eterm -e "nmap -h" Shoots out a error

and aterm -e "nmap -h" simply returns to prompt with out even trying to open a aterm shell.

I would appreciate some help on this if anyone knows what to do, Thanks
Old 01-05-2009, 01:27 PM   #2
Senior Member
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
Read the man pages perhaps? Eterm and aterm might use a different option flag for executing a command - maybe something like "-exec".
Old 01-05-2009, 02:58 PM   #3
LQ Newbie
Registered: Jan 2009
Location: /dev/null
Distribution: Gentoo Linux, Backtrack
Posts: 2

Original Poster
Rep: Reputation: 0
Of course I read the man pages many times. I did get some help from the Eterm devs so I solved the issue. Not sure if anyone cares but heres what happens...

For security reasons Eterm does not call the -e function in the same way xterm does so in order to exhibit the same behavior you have to do this

Eterm -e /bin/sh -c "nmap -h"

Problem solved.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Aterm or Eterm ?! BlueSpirit Linux - Software 8 10-20-2006 06:09 PM
Can't find Aterm and Eterm Meta42 SUSE / openSUSE 2 10-10-2006 04:26 PM
xterm, rxvt, aterm, eterm, profiles? colors? gplacek Linux - Software 4 10-24-2004 10:01 PM
aterm/eterm problem with mouse Trunks7j Linux - Software 1 02-16-2004 05:51 PM
how do I use aterm/eterm!? shaydwyrm Linux - Software 4 08-27-2003 07:13 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:48 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration