LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   what is wrong with the shell/perl command xterm..- (https://www.linuxquestions.org/questions/programming-9/what-is-wrong-with-the-shell-perl-command-xterm-353190/)

alix123 08-14-2005 12:50 PM

what is wrong with the shell/perl command xterm..-
 
what is wrong with the command

xterm -e perl /root/test.pl

apart from this where can i add this command so that immediatel after the desktop is shown it should start xterm and also starts executing the perl file the same shell

i tried putting the commad "perl /root/test.pl" in rc.local its not working at all the perl files executes even before login.

i also tried putting perl /root/test/pl it into .bashrc . it executes after login but before showing the desktop .

the aim of my program is as soon as the user logs in and desktop is shown. the xterm or anyother shell should open and start executiing the perl file.

puffinman 08-14-2005 08:06 PM

You can use .xinitrc to run things when starting X. Remember to use & to put persistant programs in the background, and then exec your window manager in the last line. Here's an example:

Code:

# ~/.xinitrc
xset s off
nice -n 15 xscreensaver -no-splash &
Eterm -D 1 &
Eterm -D 2 &
Eterm -D 3 &
Eterm -D 4 &
gkrellm2 -w &
xmms &
exec startfluxbox



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