General TC > Remasters / Remixes - Unofficial
Run a script after booting up
m2:
I have a problem that can't find a solution how to run small script after tiny core is boot up in desktop.
Tryed this: (in bootlocal.sh)
----
sudo cp /opt/open.sh /usr/sbin
at now + 3 minutes < sudo –u tc open.sh &
#sudo -u tc open.sh &
----
last two commands isn't to do the trick...
(I want to do some things in tc user desktop... or after desktop has loaded up... also I want run that script only once at after boot...)
At manually everything is fine when in desktop open aterm and hit open.sh & ... thats OK, but want to automate that.
Thanks,
coreplayer2:
Sometimes I feel commanding a script is hit or miss, however
this usually works
in bootlocal.sh if required late in the boot process
sleep 5
/path/to xx.sh
vitex:
--- Quote from: m2 on September 19, 2011, 07:19:48 AM ---at now + 3 minutes < sudo –u tc open.sh &
--- End quote ---
Try
echo sudo -u tc open.sh | at now + 3
curaga:
.X.d
Please read the FAQ.
coreplayer2:
I always feel like the FAQ's leaves me searching for more info...
I mean "opera &" ?? for someone who already knows the answers this maybe all they need, but for someone new to tc could naturally need a few more examples... Just imagine all the possibilities here?? I remember searching for answers to questions like "well how about a script?" is the script expected to be found in a specific location? is path important? is the file extension important? etc. etc..
just saying is all.. :)
Navigation
[0] Message Index
[#] Next page
Go to full version