-   Linux - Software (
-   -   How do i run a script upon bootup, but in a terminal window (

xmrkite 09-29-2008 02:10 PM

How do i run a script upon bootup, but in a terminal window

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?


ncsuapex 09-29-2008 03:28 PM

not sure about xfce but in KDE you would put scripts in ~/.kde3/Autostart

xmrkite 09-29-2008 03:34 PM

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?

ilikejam 09-29-2008 03:43 PM

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


xmrkite 09-29-2008 04:52 PM

Cool, but how would i do that in xfce, since i don't have the kde or gnome terminals?

ilikejam 09-29-2008 04:55 PM

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


xmrkite 09-29-2008 04:59 PM

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.

All times are GMT -5. The time now is 06:42 AM.