I have a client sever java program. The client's work is to capture the screen and send data to server. An additional function it does is opens the website given from server and send some text to server. I wanted the client to run at startup, so I wrote a script and used it in
/etc/init.d and used
update-rc.d scriptname defaults and then rebooted. On reboot, the text I am supposed to receive works perfectly. But I am not able to browse or receive captured screen from client.
The script I used in init.d is as follows:
#!/bin/sh ### START INIT INFO # Provides: suscript # Required-Start: $remote_fs $syslog $local_fs $network # Required-Stop: $remote_fs $syslog $local_fs $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start daemon at boot time # Description: Enable service provided by daemon. ### END INIT INFO java -jar /etc/capture/capture.jar
I run the client jar as root. How do I bring the graphical data to the server?