waitfor

Hi,

I’m building my image for an embedded system and have a question. In
the build file I can startup the io-net driver and do a “waitfor /dev/socket
30”. I want to move this to the sysinit file and do the same. However it
seems that the waitfor isn’t supported. It says that it can’t find waitfor.
Any Ideas???

Also, is it possible to get input from the user in a script file. I want to
be able to prompt the user whether to start certain processes during boot
time. This will be like a “safe mode”.


Thanks,
Paul Vander Byl

Paul Vander Byl <paul@gandacar.ca> wrote:
: Hi,

: I’m building my image for an embedded system and have a question. In
: the build file I can startup the io-net driver and do a “waitfor /dev/socket
: 30”. I want to move this to the sysinit file and do the same. However it
: seems that the waitfor isn’t supported. It says that it can’t find waitfor.
: Any Ideas???

Look at the ‘if_up’ utility.

-seanb

I’m not too sure if this will work since it tells me that it exhausted it’s
retries when trying if_up /dev/socket. This is when the process has already
started ans /dev/socket exists.


“Sean Boudreau” <seanb@qnx.com> wrote in message
news:abe91h$mp5$1@nntp.qnx.com

Paul Vander Byl <> paul@gandacar.ca> > wrote:
: Hi,

: I’m building my image for an embedded system and have a question.
In
: the build file I can startup the io-net driver and do a “waitfor
/dev/socket
: 30”. I want to move this to the sysinit file and do the same. However
it
: seems that the waitfor isn’t supported. It says that it can’t find
waitfor.
: Any Ideas???

Look at the ‘if_up’ utility.

-seanb

“Paul Vander Byl” <paul@gandacar.ca> wrote in message
news:abe8dd$nal$1@inn.qnx.com

Hi,

I’m building my image for an embedded system and have a question. In
the build file I can startup the io-net driver and do a “waitfor
/dev/socket
30”. I want to move this to the sysinit file and do the same. However it
seems that the waitfor isn’t supported. It says that it can’t find
waitfor.
Any Ideas???

on -w /dev/socket -W30

Also, is it possible to get input from the user in a script file. I want
to
be able to prompt the user whether to start certain processes during boot
time. This will be like a “safe mode”.


Thanks,
Paul Vander Byl

Perfect Thanks.


“Mario Charest” <goto@nothingness.com> wrote in message
news:abebn8$pj5$1@inn.qnx.com

“Paul Vander Byl” <> paul@gandacar.ca> > wrote in message
news:abe8dd$nal$> 1@inn.qnx.com> …
Hi,

I’m building my image for an embedded system and have a question.
In
the build file I can startup the io-net driver and do a “waitfor
/dev/socket
30”. I want to move this to the sysinit file and do the same. However
it
seems that the waitfor isn’t supported. It says that it can’t find
waitfor.
Any Ideas???

on -w /dev/socket -W30


Also, is it possible to get input from the user in a script file. I want
to
be able to prompt the user whether to start certain processes during
boot
time. This will be like a “safe mode”.


Thanks,
Paul Vander Byl
\

Paul Vander Byl <paul@gandacar.ca> wrote:

Hi,

I’m building my image for an embedded system and have a question. In
the build file I can startup the io-net driver and do a “waitfor /dev/socket
30”. I want to move this to the sysinit file and do the same. However it
seems that the waitfor isn’t supported. It says that it can’t find waitfor.
Any Ideas???

Hm… /bin/waitfor exits on my 6.2 system… maybe its been added between
6.1 and 6.2.

Also, is it possible to get input from the user in a script file. I want to
be able to prompt the user whether to start certain processes during boot
time. This will be like a “safe mode”.

Absolutely possible. Look at the shell built-in read.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

David Gibbs <dagibbs@qnx.com> wrote:

Paul Vander Byl <> paul@gandacar.ca> > wrote:
Hi,

I’m building my image for an embedded system and have a question. In
the build file I can startup the io-net driver and do a “waitfor /dev/socket
30”. I want to move this to the sysinit file and do the same. However it
seems that the waitfor isn’t supported. It says that it can’t find waitfor.
Any Ideas???

Hm… /bin/waitfor exits on my 6.2 system… maybe its been added between
6.1 and 6.2.

It’s simply linked to on. Guess that’s a 6.2 thing.

$ pkgctl /bin/waitfor
— Information from /dev/pkginfo7 —
Localpath: [/bin/waitfor]
Fullpath: [/pkgs/base/qnx/os/core-2.1.3-bld515/x86/bin/on]
Repository: [/pkgs/base]
Vendor: [qnx/os/core-2.1.3-bld515]
Tree: [x86/bin/on]

-xtang

Yeah, it is a 6.2 thing. on checks argv[0] and I added in code to make it
behave like wait_for in the bootscript when symlinked. :wink:

chris


Xiaodan Tang <xtang@qnx.com> wrote:

David Gibbs <> dagibbs@qnx.com> > wrote:
Paul Vander Byl <> paul@gandacar.ca> > wrote:
Hi,

I’m building my image for an embedded system and have a question. In
the build file I can startup the io-net driver and do a “waitfor /dev/socket
30”. I want to move this to the sysinit file and do the same. However it
seems that the waitfor isn’t supported. It says that it can’t find waitfor.
Any Ideas???

Hm… /bin/waitfor exits on my 6.2 system… maybe its been added between
6.1 and 6.2.

It’s simply linked to on. Guess that’s a 6.2 thing.

$ pkgctl /bin/waitfor
— Information from /dev/pkginfo7 —
Localpath: [/bin/waitfor]
Fullpath: [/pkgs/base/qnx/os/core-2.1.3-bld515/x86/bin/on]
Repository: [/pkgs/base]
Vendor: [qnx/os/core-2.1.3-bld515]
Tree: [x86/bin/on]

-xtang


Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/