How to autolaunch applications with a 1 minute delay???
11 replies, posted
I’ve been trying for some time to get the [B]REALLY[/B] scraped down Xubuntu 10.04 installation on my server to autolaunch some applications with a delay, after the system is fully started up .
Problem is, the built in app autolauncher in Xubuntu doesn’t support delaying certain apps (or atleast not to my knowledge)
I guess the solution would be to take advantage of the [I] /etc/init.d [/I] directory somehow, but I have absolutely [B]ZERO[/B] experience with that.
And I would also appreciate if anyone can tell me how to do the same with mounting of a filesystem, even though that’s not as important
Also I [B]KNOW[/B] using xubuntu for a server isn’t the smartest, but I simply don’t trust myself 100% with CLI/ssh, so I need to GUI along with a VNC server in-case of I need to do something that I could easily screw up using text-based interface.
Any useful help will be appreciated :tiphat:
You could write a shell script to launch the apps and then use the built in launcher to start the script. I don't know if this will be the best solution but it will probably work.
I guess it should look like this:
[code]
#!/bin/bash
sleep [seconds]
[application]
[/code]
[QUOTE=drblah;28442090]You could write a shell script to launch the apps and then use the built in launcher to start the script. I don't know if this will be the best solution but it will probably work.
I guess it should look like this:
[code]
#!/bin/bash
sleep [seconds]
[application]
[/code][/QUOTE]
Should have mentioned that I've tried that, and I failed.
Was actually one of the first things I tried.
Why it didn't work I dunno, since I could easily execute the launchers by double clicking them or via CLI.
Did you remember to run chmod a+x to make it executable ?
[QUOTE=drblah;28442287]Did you remember to run chmod a+x to make it executable ?[/QUOTE]
yep.
Have you read this? [url]http://ubuntuforums.org/showthread.php?t=104473[/url]
It works for me on Ubuntu. (Yes I know it is almost the same as I just suggested).
I spoke too soon.
Turns out if probably was the permission of the folder the launchers were stored in that was the problem.
It's always what I least expect that's the source of my problems :downs:
[editline]5th March 2011[/editline]
Now I just need to figure out of to mount a drive 1 minute after the OS is fully started up.
Why do you need to wait until 1 minute after the OS has started?
[QUOTE=rieda1589;28443000]Why do you need to wait until 1 minute after the OS has started?[/QUOTE]
various reasons.
Mounting a partition with a delay could be done the same way you start your applications, except this time you would use the mount command.
Make sure that the partition/drive you want to delay is not present in /etc/fstab. If is, you will need to remove the partition's line from fstab to prevent the system from mounting it automatically (without the delay).
[QUOTE=Van-man;28442764]Now I just need to figure out of to mount a drive 1 minute after the OS is fully started up.[/QUOTE]
[CODE]wait 60
mount /dev/sdxy[/CODE]
x being the volume (b, c, d, etc.), y being the partition (1, 2, 3, etc.)
It'll need to be in fstab though, I think.
[QUOTE=Qombat;28450675][CODE]wait 60
mount /dev/sdxy[/CODE]
x being the volume (b, c, d, etc.), y being the partition (1, 2, 3, etc.)
It'll need to be in fstab though, I think.[/QUOTE]
Thanks, though I'm having a dead disk in my RAID array, so my server is offline ATM.
Gonna try it in Vbox when i get some time though.
Sorry, you need to Log In to post a reply to this thread.