roslaunch command does not run when put in crontab
I am setting crontab to let my computer to launch certain ros package when it starts up or reboots.
here is the content I put in crontab -e, @reboot bash -c '/home/user/launch.sh'
while the launch.sh file simply contains a single roslaunch command,
!/bin/bash
roslaunch socket_server socket.launch
The above .sh file confirms running fine in terminal, but every time when the pc (re)boots, the roslaunch commmand doesn't run as expected; and I can't even find any records in the sys log file.
Can anybody with experience on cron + ros configuring help?
thanks clark