sometimes the psybnc process killed or crashed, so if you're not around you'll not be able to run your psybnc without defining cronjob
there's a file in your psybnc folder called psybncchk to check that your psybnc is running and if it is not running, the crontab will initialize the process again
crontab for psybnc 2.3.2-7
1. edit the psybncchk file:
---
#!/bin/sh
# This is the crontab script for psybnc.
#
# Please change the following path to your psybnc-directory.
PSYBNCPATH=/path-to-your/psybnc
# the rest should be kept as is
if test -r $PSYBNCPATH/psybnc.pid; then
PSYPID=$(cat $PSYBNCPATH/psybnc.pid)
if $(kill -CHLD $PSYPID >/dev/null 2>&1)
then
exit 0
fi
fi
cd $PSYBNCPATH
./psybnc &>/dev/null
---
2. chmod 700 psybncchk
#this will change permission to the psybncchk file
3. then define the crontab using command: crontab -e
0,10,20,30,40,50 * * * * /path-to-your/psybnc/psybncchk >/dev/null 2>&1
#to list your cronjob, check using crontab -l
http://pastebin.ca/678613
Showing posts with label shell. Show all posts
Showing posts with label shell. Show all posts
Sunday, September 2, 2007
::changing default editor::
#default editor in UNIX/Linux is usually vi, but you can change the default editor to pico/nano/vim using this command:
export EDITOR=pico
#or
export EDITOR=nano
#or
export EDITOR=vim
#you may then edit your crontab using your preferred editor
crontab -e
export EDITOR=pico
#or
export EDITOR=nano
#or
export EDITOR=vim
#you may then edit your crontab using your preferred editor
crontab -e
Subscribe to:
Posts (Atom)