Wpisuję skrypt w konsoli, jak mam go zapisać i wrócić do linii poleceń?
Kod: Zaznacz cały
login as: root
[email protected]'s password:
Linux debian 2.6.26-2-486 #1 Thu Nov 25 01:49:20 UTC 2010 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Jan 19 10:00:52 2011
debian:~# vim /emu/script/cccam
{
p CCcam.x86
}
case “$1″ in
start)
echo “[SCRIPT] $1: $CAMNAME”
start_cam
;;
stop)
echo “[SCRIPT] $1: $CAMNAME”
stop_cam
;;
restart)
echo “Restaring $CAMNAME”
stop_cam
start_cam
;;
*)
“$0″ stop
exit 1
;;
esac
exit 0
-- INSERT --