SliTaz SliTaz Forum

You are not logged in.

#1 2012-05-19 03:53:45

romano
Member
Registered: 2011-12-08
Posts: 91

Slitaz3 - Slitaz 4

For startup im doing small installment and cleaning cache etc and start some application.

So i prepared some shell scripts. This shell scripts work well in slitaz 3.

But in when i try to check in slitaz 4 i realized nohup command doesnt work proper way.

1-) subox is starting automaticly. When client click to OK button subox.sh is executing. (password is autosaved)

2-) With tux user start.sh will execute.

3-) in start.sh is trying to execute firefox and leafpad application.

4-) waiting for 30 seconds and finishing all things.

in this case nohup command is not doing job well and closing firefox application. but its not closing leafpad application.

this one is not happening in slitaz 3.

( i just minimized the codes)

What is the problem? Is something bug or changed in slitaz 4?

# autostart.sh

    subox "xterm -e /home/usr/subox.sh" &

# subox.sh

    #! /bin/sh

    su tux -c '/bin/sh /home/usr/start.sh'

# start.sh

    #! /bin/sh

    nohup firefox &

    nohup leafpad &

    sleep 30

Offline

#2 2012-05-19 08:58:53

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Slitaz3 - Slitaz 4

http://en.wikipedia.org/w/index.php?title=Nohup

Find and read your nohup.out for debugging.

Offline

#3 2012-05-21 03:27:52

romano
Member
Registered: 2011-12-08
Posts: 91

Re: Slitaz3 - Slitaz 4

nohup.out

gtk-warning locale not supported by c library..

nothing more.

just didnt get it how come code is not working in slitaz4 and but works well slitaz3.

Offline

#4 2012-06-20 01:59:02

romano
Member
Registered: 2011-12-08
Posts: 91

Re: Slitaz3 - Slitaz 4

honestly, nohup command works in slitaz 4 different than slitaz 3.

instead of getting crazy i just changed codes in shell script and fixed the my problem. almost a month, seems everything is fine.

thanks guys

Offline

#5 2012-10-24 16:38:07

marcb
Member
Registered: 2011-08-01
Posts: 22

Re: Slitaz3 - Slitaz 4

can you explain your workaround? would be very useful to know your solution

Offline

#6 2012-10-26 01:44:42

romano
Member
Registered: 2011-12-08
Posts: 91

Re: Slitaz3 - Slitaz 4

omg 4 months ago topic is alive again smile

as i remember nohup command in slitaz 3 was executing application in different processs. but in in slitaz 4 its not. it works under terminal application. when xterm is closed firefox and leafpad was closing also.

so what i did in start.sh i put while do loop and every second im checking the subox.sh is complete or not. if its done i will just exit the loop and continue the other process.

sorry my awkard english smile

Offline

#7 2012-11-04 21:03:44

marcb
Member
Registered: 2011-08-01
Posts: 22

Re: Slitaz3 - Slitaz 4

issue solved installing

coreutils-command

bash

now all works like in slitaz 3.0 smile

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]