Hi, Just wanted to double check. Your script exits the console by invoking 'quit' the proper number of times, right?
Emmanuel > I tried > > my-node$ ./console.sh -f myscript.sql > logfile 2>&1 & > > But, it stopped that process like this, always: > > [1]+ Stopped /usr/local/sequoia/bin/console.sh -f myscript.sql > > logfile 2>&1 > > BTW, after I put that command on crontab, it disappeared and worked > successfully. > I just wonder what makes this difference. Thanks. > > > 2008/11/11 Emmanuel Cecchet <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> > > Hi, > > You might have to redirect the outputs for executing in background. > Something like 'console.sh -f script >> logfile 2>&1' should do it if > you are using bash. > > Thanks for the feedback, > Emmanuel > > Thank you for your help. It works now. > > BTW, the strange thing is that it does not work with '&' even if > I use > > '-f' option with file name on terminal, > > but works on crontab execution (I didn't put '&' in this case). What > > makes this difference? > > I thought that crontab execution and terminal background execution > > would be same underground > > mechanism, so concluded that crontab also will not work, because '&' > > mode did not work on the terminal. > > I just wonder. Anyway, thanks a lot! > > > > > > On Mon, Nov 10, 2008 at 9:47 PM, Emmanuel Cecchet > > <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>> wrote: > > > > Hi, > > > > Use 'console.sh -h' to get the console options. > > You shoud use 'console.sh -f some_script_file' to run console > > scripts from crontab. Otherwise the console is going to work in > > interactive mode in which case your input will have to end with an > > explicit EOF. > > > > Hope this helps, > > Emmanuel > > > > > > Each time I try to run "console.sh < some_script_file" in > > background mode, or crontab to periodically backup dumps. > > The problem is that the console process is turned into "stop" > > mode in linux always. I tried to re-run by using "bg" command. > > But, it still went back to "stop" process mode right away. > > > > Can you guys run your auto-backup script with "sequoia's > > console" command in a background mode or in crontab? > > Thanks for reading. > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Sequoia mailing list > > [email protected] > <mailto:[email protected]> > > <mailto:[email protected] > <mailto:[email protected]>> > > https://forge.continuent.org/mailman/listinfo/sequoia > > > > > > > > -- > > Emmanuel Cecchet > > FTO @ Frog Thinker Open Source Development & Consulting > > -- > > Web: http://www.frogthinker.org > > email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> > > Skype: emmanuel_cecchet > > > > _______________________________________________ > > Sequoia mailing list > > [email protected] > <mailto:[email protected]> > > <mailto:[email protected] > <mailto:[email protected]>> > > https://forge.continuent.org/mailman/listinfo/sequoia > > > > > > > > > > -- > > 여호와는 네게 복을 주시고 너를 지키시기를 원하며 > > 여호와는 그 얼굴을 네게 비추사 은혜 베푸시기를 원하며 > > 여호와는 그 얼굴을 네게로 향하여 드사 평강 주시기를 원하노라 > > (민수기 6:24-26) > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Sequoia mailing list > > [email protected] > <mailto:[email protected]> > > https://forge.continuent.org/mailman/listinfo/sequoia > > > -- > Emmanuel Cecchet > FTO @ Frog Thinker > Open Source Development & Consulting > -- > Web: http://www.frogthinker.org > email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > Skype: emmanuel_cecchet > > _______________________________________________ > Sequoia mailing list > [email protected] > <mailto:[email protected]> > https://forge.continuent.org/mailman/listinfo/sequoia > > > > > -- > 여호와는 네게 복을 주시고 너를 지키시기를 원하며 > 여호와는 그 얼굴을 네게 비추사 은혜 베푸시기를 원하며 > 여호와는 그 얼굴을 네게로 향하여 드사 평강 주시기를 원하노라 > (민수기 6:24-26) > ------------------------------------------------------------------------ > > _______________________________________________ > Sequoia mailing list > [email protected] > https://forge.continuent.org/mailman/listinfo/sequoia -- Emmanuel Cecchet FTO @ Frog Thinker Open Source Development & Consulting -- Web: http://www.frogthinker.org email: [EMAIL PROTECTED] Skype: emmanuel_cecchet _______________________________________________ Sequoia mailing list [email protected] https://forge.continuent.org/mailman/listinfo/sequoia
