LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-06-2022, 01:30 PM   #1
jindam vani
Member
 
Registered: Sep 2022
Distribution: debian
Posts: 40

Rep: Reputation: 0
Red face xterm: Can't execvp -xxxcx: No such file or directory


i am running debian bullseye on userland
app (android)(3). when i run my .sh file:

*
Code:
xterm -e -hold -geometry 80x24+30+200 -display localhost:51 cat ~/wpc.txt $@
shows error: "xterm: Can't execvp -hold:
No such file or directory"

*
Code:
xterm -e -geometry 80x24+30+200 -display localhost:51 cat ~/wpc.txt $@
shows error: "xterm: Can't execvp -geometry:
No such file or directory"

even if i remove "-display", it shows same
error

geometry settings copued from man page (1).

# microsoft wslg "xterm geometry argument
ignored" (2) bug applies to me?
# or is there something in code itself?

(1) https://linux.die.net/man/7/x
(2) https://github.com/microsoft/wslg/issues/108
(3) https://play.google.com/store/apps/details?id=tech.ula

regards,
jindam, vani
 
Old 10-06-2022, 01:40 PM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
man xterm
Code:
      -e program [ arguments ... ]
               This option specifies the program (and its command line arguments) to be run in the xterm window.  It also sets the window title and icon name to be the basename of the program being executed
               if neither -T nor -n are given on the command line.

               NOTE: This must be the last option on the command line.
 
1 members found this post helpful.
Old 10-06-2022, 05:04 PM   #3
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
Maybe you want something like:
Code:
xterm -g 80x24+30+200 -display localhost:51 -e "cat ~/wpc.txt; bash"
 
1 members found this post helpful.
Old 10-06-2022, 10:02 PM   #4
jindam vani
Member
 
Registered: Sep 2022
Distribution: debian
Posts: 40

Original Poster
Rep: Reputation: 0
@pan64 i will keep in mind about using -e option
@teckk your code works great
 
  


Reply



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
Starting Postfix: execvp: No such file or directory Mateo1041 Linux - Software 0 06-16-2005 10:03 AM
execvp: No such file or Directory on bootup Tenover Linux - General 3 02-06-2004 05:25 PM
Starting httpd: execvp: No such file or directory jules_fraser Linux - Software 2 01-18-2004 08:43 AM
Starting httpd: execvp: No such file or directory jules_fraser Linux - Networking 6 01-18-2004 06:36 AM
Starting YP Map server: execvp: no such file or directory kofi Linux - Networking 3 10-07-2003 09:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:03 PM.

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