Re: [uClinux-dev] another stupid (simple?) question - auto-start of application with shell?

2008-01-08 Thread Karthik Balaguru
>For logging issues, does this help (putting it in main())?> int devnullfd = -1;>devnullfd = open("/dev/ttyS0", O_WRONLY);> if ( devnullfd && dup2(devnullfd, STDOUT_FILENO) == -1)>{> printf("Cannot dup\n"); }> I  used this to run my application but printf statement not > happening ,becoz> of the ia

[uClinux-dev] another stupid (simple?) question - auto-start of application with shell?

2008-01-08 Thread satyanarayanam
Hi, >For logging issues, does this help (putting it in main())? > int devnullfd = -1; >devnullfd = open("/dev/ttyS0", O_WRONLY); > if ( devnullfd && dup2(devnullfd, STDOUT_FILENO) == -1) >{ > printf("Cannot dup\n"); } I used this to run my application but printf statement not happening ,becoz of t

Re: [uClinux-dev] another stupid (simple?) question - auto-start of application with shell?

2008-01-04 Thread Carlos Becker
Hi, have you tried /etc/profile or wherever it is that the shell reads the init file? However, that would execute in ssh sessions too, for instance. Also make sure you didn't use "date &" but "date " only in /etc/rc, since the first one would make date run on the background. On Jan 4, 2008 3:58

[uClinux-dev] another stupid (simple?) question - auto-start of application with shell?

2008-01-03 Thread satyanarayanam
Hi to all, I am using uclinux with snapgear 3.4,i need to run a program at booting time, then i placed my execute file in etc/rc ,it is executing but in the program it must wait for user date(keyboard),But it is not waiting... then i realised that at the time of execting this program,shell is yet

Re: [uClinux-dev] another stupid (simple?) question - auto-start of application with shell?

2007-12-11 Thread Bou
Hi Wolfgang, Hi Jerry, On Fri, Dec 07, 2007 at 06:33:36PM -0800, Jerry (Peng) Yang wrote: You can simply type: Ps. Then you can get the process id. Type kill n. [...] well, that would be the fall-back solution if anything else fails. If I understand correctly, you mean starting the ap

Re: [uClinux-dev] another stupid (simple?) question - auto-start of application with shell?

2007-12-10 Thread Wolfgang Wegner
Hi Jerry, On Fri, Dec 07, 2007 at 06:33:36PM -0800, Jerry (Peng) Yang wrote: > You can simply type: > Ps. > Then you can get the process id. Type kill n. [...] well, that would be the fall-back solution if anything else fails. If I understand correctly, you mean starting the application in the ba

RE: [uClinux-dev] another stupid (simple?) question - auto-start of application with shell?

2007-12-07 Thread Jerry (Peng) Yang
Subject: [uClinux-dev] another stupid (simple?) question - auto-start of application with shell? Hi, sorry there are so many questions from me lately! I am just trying to set up some first tests, but not making switching between development and test version too difficult. I would like to

[uClinux-dev] another stupid (simple?) question - auto-start of application with shell?

2007-12-07 Thread Wolfgang Wegner
Hi, sorry there are so many questions from me lately! I am just trying to set up some first tests, but not making switching between development and test version too difficult. I would like to automatically start an application when uClinux boots up, but be able to terminate this application with