LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-29-2008, 01:10 PM   #1
xmrkite
Member
 
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 542

Rep: Reputation: 30
How do i run a script upon bootup, but in a terminal window


Hello,

I'm trying to create a backup script that will run upon bootup, but in a terminal window, after xfce has loaded, and run it as root.

Any idea on how to do this?

I know how to run the script at bootup, but it will only run before xfce loads, and it will run in the background so i won't be able to monitor its progress.

Is there some sort of command i use to get it to pop up in a new terminal window?

Any ideas?

-Thanks
 
Old 09-29-2008, 02:28 PM   #2
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 43
not sure about xfce but in KDE you would put scripts in ~/.kde3/Autostart
 
Old 09-29-2008, 02:34 PM   #3
xmrkite
Member
 
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 542

Original Poster
Rep: Reputation: 30
Thanks for the quick reply, but even in kde, the script would run in the background if i'm not mistaken. I want it to pop up after the user logs in so that I can see the terminal output while the script is running, since it takes a few minutes.

Any ideas?
 
Old 09-29-2008, 02:43 PM   #4
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Something like 'konsole --noclose -e /path/to/script' or 'gnome-terminal -x /path/to/script' should do what you're looking for.

Dave
 
Old 09-29-2008, 03:52 PM   #5
xmrkite
Member
 
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 542

Original Poster
Rep: Reputation: 30
Cool, but how would i do that in xfce, since i don't have the kde or gnome terminals?
-Thanks
 
Old 09-29-2008, 03:55 PM   #6
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Everyone should have xterm, so: xterm -hold -e /path/to/script

Dave
 
Old 09-29-2008, 03:59 PM   #7
xmrkite
Member
 
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 542

Original Poster
Rep: Reputation: 30
OK, i got it.

xfce4-terminal --hold -x /path/to/script

That opens a terminal window, runs a script, and keeps the window open even after the script is done.

-Thanks for your help, your replies helped a ton.
 
  


Reply


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
Bash script to launch a terminal window on another user's desktop Excalibre Linux - Software 7 09-29-2008 02:01 AM
How to make script close terminal window when complete??? taylorkh Linux - Newbie 2 08-27-2008 10:43 AM
run a terminal from script abd_bela DamnSmallLinux 1 06-24-2008 06:18 AM
Difference between a Shell terminal window and the KDE Linux Console terminal window? bostonantifan Fedora 2 03-25-2007 07:23 PM
How can a bash script findout the width of the terminal window alex.e.c Linux - Software 2 10-14-2004 11:20 AM


All times are GMT -5. The time now is 03:18 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration