Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 08-14-2005, 12:50 PM   #1
Registered: Nov 2004
Posts: 63

Rep: Reputation: 15
what is wrong with the shell/perl command xterm..-

what is wrong with the command

xterm -e perl /root/

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/" 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.
Old 08-14-2005, 08:06 PM   #2
Registered: Jan 2005
Location: Atlanta, GA
Distribution: Gentoo, Slackware
Posts: 217

Rep: Reputation: 30
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:

# ~/.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


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
Require Linux/Perl equivalent command for windows Command alix123 Programming 7 08-19-2005 02:23 AM
how is black xterm background in IceWM when issue a xterm command? BRAHmS Linux - Software 1 02-14-2005 03:51 AM
Reconfigure command in "perl -MCPAN -e shell" asciimonster Linux - Software 1 09-16-2004 08:48 AM
Perl shell-out to script dunna work. Works on command line. Why? jlangelier Linux - Software 1 08-28-2004 02:00 AM
How to call the arp linux shell command from within a perl program Bassam Programming 1 03-11-2004 02:00 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:10 PM.

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