You are not logged in.

#1 2009-01-21 17:23:45

wooptoo
Member
Registered: 2007-04-23
Posts: 78
Website

urxvt -e not working

urxvt -e [command] doesn't work as expected. It opens a new urxvt window and it closes immediately without executing the command.
I use GNOME and i would like to replace gnome-terminal, but i need the "-e" functionality.

Offline

#2 2009-01-21 17:40:56

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: urxvt -e not working

It works for me with abook, mutt, mcabber, mplayer, feh, ncmpcpp, vi...

It should work as long as the command you execute doesn't terminate immediately upon completion.
What command were you trying to execute?

Offline

#3 2009-01-21 18:06:13

u_no_hu
Member
Registered: 2008-06-15
Posts: 453

Re: urxvt -e not working

hold?


Don't be a HELP VAMPIRE. Please search before you ask.

Subscribe to The Arch Daily News.

Offline

#4 2009-01-21 18:41:35

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: urxvt -e not working

It works for me.  What's the specific command you're trying to run?

Offline

#5 2009-01-21 18:42:18

Sjoden
Member
From: WA
Registered: 2007-08-16
Posts: 380
Website

Re: urxvt -e not working

Runiq is right.

urxvt -e alsamixer

That will work fine, but;

urxvt -e ssh --help

will just display the help information and close.

Offline

#6 2009-01-21 18:48:17

u_no_hu
Member
Registered: 2008-06-15
Posts: 453

Re: urxvt -e not working

urxvt --hold -e ls


Don't be a HELP VAMPIRE. Please search before you ask.

Subscribe to The Arch Daily News.

Offline

#7 2009-01-21 19:29:36

wooptoo
Member
Registered: 2007-04-23
Posts: 78
Website

Re: urxvt -e not working

I need the "-e" for Geany (IDE). The execute command (F12) from the IDE opens a console that launches a script that launches the application i just build.

Something like this happens:

urxvt -e geany_run_script.sh

geany_run_script.sh:

#!/bin/sh

./application

echo "

------------------
(program exited with code: $?)"         


echo "Press return to continue"
#to be more compatible with shells like dash
dummy_var=""
read dummy_var
rm $0

./application is my app.

urxvt doesn't execute that script and it says: urxvt: unable to exec child.

Last edited by wooptoo (2009-01-21 19:30:37)

Offline

#8 2009-01-21 20:17:23

JonnyJD
Member
From: Berlin
Registered: 2007-11-05
Posts: 50

Re: urxvt -e not working

urxvt -hold -e cal -3

Will open a calendar and leave the terminal open.

urxvt -e bash -c "cal && bash"

Will open a calendar and stay in a shell afterwards. The window is closed when you exit the shell.

@wooptoo.
urxvt can't execute everything with -e.

urxvt -hold -e "cal -3"

(note the quotation) will give the same "unable to exec child" error.
Try this:

urxvt -e bash -c geany_run_script.sh

or

urxvt -hold -e bash -c "./application"

My experience is, that "urxvt -e" can't execute shell scripts.

Offline

#9 2009-01-22 03:56:32

wooptoo
Member
Registered: 2007-04-23
Posts: 78
Website

Re: urxvt -e not working

Thanks JonnyJD, urxvt -e bash -c worked. Also, other shell scripts work with -e. I'll report this to the Geany devs.
Sorry for the misleading topic, but it seemed related to urxvt at first.

Offline

Board footer

Powered by FluxBB