我喜欢在启动时启动我的Raspberry Pi上的Siriproxy服务器。我在终端输入如何在启动时运行Linux终端命令
cd siriproxy
rvmsudo siriproxy server
开始Siriproxy。 有没有办法在启动时运行命令?
非常感谢,
大卫
这是我编辑的脚本:
#!/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.
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
fi
#I added this line
/home/pi/siriproxy server
exit 0
/etc/init.d/cron start
考虑'的/ etc/init.d'创建一个脚本。 – devnull 2013-05-07 13:49:09
@devnull不,因为我不知道该怎么做,而且我是Linux新手。 – 2013-05-07 14:25:36