
Ubuntu日本語フォーラム

ログインしていません。
サーバーに対して接続後、10秒に1回毎に1kbyte程度のパケットをTCP通信で送信して、サーバーとの通信が断線していないかをチェックするようなプログラムを作成しました。
このプログラムをUbuntuを起動したら自動的にこのプログラムの実行ファイルを起動できるようにしたいと思っています。
http://hisk2tmem.blog61.fc2.com/blog-entry-11.html
こちらのサイトで
/etc/rc.local
このファイルに起動させたいファイルのパスを書けば起動してくれると言うことで、
次のようにrc.localに
”/root/20140411/test_client”
というファイルパスを書いてみました。
root@ubuntu:/etc# cat rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
/root/20140411/test_client
exit 0
これで、Ubuntuを再起動してみたのですが、
/root/20140411/test_client
このプログラムが起動していないようで、サーバーへ接続されてきません。
この自動機能の設定は間違っていますでしょうか?
アドバイスをご教示頂きますよう、お願い致します。
オフライン