You are not logged in.
Pages: 1
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
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
hold?
Offline
It works for me. What's the specific command you're trying to run?
Offline
urxvt --hold -e ls
Offline
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
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
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
Pages: 1