Hello everyone, there are some trouble in my debug working. When I startup network by command one by one, it’s okay everything, but when I used a shell which contain these commands, the remote pc can not communicate with my QNX machine, what’s the reason? When I change the dofferent switch, may be okay, and how to explain this phenomena?
And thanks a lot.
this below is the command in shell:
slay -f ‘some processes’
Net &
Net.ether82557 -P &
/usr/ucb/Socket -L SERVER &
/usr/ucb/ifconfig en1 192.168.0.1 netmask 255.255.255.0 up
Network drivers / Net process not in receive state before Socket is being started, well thats what i found.
Net &
Net.ether82557 -P &
while [ nettry -gt 0 ]; do
if [ “$(sin | grep -sc Net.*RECV)” -gt 1 ]; then
/usr/ucb/Socket -L SERVER &
break
fi
let nettry=nettry-1
sleep 1
done
/usr/ucb/ifconfig en1 192.168.0.1 netmask 255.255.255.0 up
Hope that is of some use, not sure if a sleep is required between Net and the Network driver start up too.