Subject: Re: Running flowscan without an open session
From: Andersson (217andersson-per@telia.com)
Date: Sun Aug 18 2002 - 09:31:41 CDT
Thanks Jordan! It worked. Now I just have to get crontab working. Nothing happens when I put the line in crontab. These are the lines. Please someone, help. /Per
##START OF CRONTAB
root@studio /var/local/flows# cat /etc/crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/home/per/netflow/raw/FlowScan-1.006/example/
MAILTO=root
HOME=/
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
# { FlowScan stuff:
#
# make the graphs:
0,5,10,15,20,25,30,35,40,45,50,55 * * * * cd @/var/local/flows/graphs && make -s >/dev/ null 2>&1
#
#
# gzip the saved flow files:
2,7,12,17,22,27,32,37,42,47,52,57 * * * * cd @/var/local/flows/saved && @/var/local/flows/bin/locker -ne .gzip_lock "@KSH_PATH@ -c '@LS_PATH@ flows.[0-9]!(*.gz) 2>/dev/null | @XARGS_PATH@ -n1 @GZIP_PATH@'"
#
#
#
# Purge the flow files:
# find(1) -mtime +1 was insufficient - I want to delete them as soon as they're
# `n' hours old:
0 * * * * @FIND_PATH@ @/var/local/flows/saved -type f -name 'flows.*' -print |@PERL_PATH@ -e '$now = time; $seconds = 28*60
*60; while (<>) { chomp; (@_ = stat $_) && ($now - $_[9] > $seconds) && print $_, "\n" }' |@XARGS_PATH@ @RM_PATH@ -f
#
# }
##END OF CRONTAB
----- Original Message -----
From: "Jordan Anderson" <jordantanderson@hotmail.com>
To: <217andersson-per@telia.com>
Sent: Thursday, August 15, 2002 10:32 PM
Subject: Re: Running flowscan without an open session
> when you are in your session, you can do:
>
> nohup /usr/bin/perl /var/local/bin/flowscan >> /var/local/flowscan.log 2>&1
> &
>
> so when you hang up the session, it will keep running.
>
> Or, using one of the included rc scripts in the include folder, just edit
> this and put it into your startup scripts.
>
>
> >From: "Andersson" <217andersson-per@telia.com>
> >To: <flowscan@net.doit.wisc.edu>
> >Subject: Running flowscan without an open session
> >Date: Thu, 15 Aug 2002 21:16:28 +0200
> >
> >
> >Hello,
> >
> >How can I run flowscan without an open session. I mean, I want the server
> >to handle this without my action. I have Linux Trustix. Right now I
> >administer it by putty. It demands an open session to run flowscan.
> >Thanks
> >Per
> >
> >
> >
> >--
> >Help mailto:majordomo@net.doit.wisc.edu and say "help" in message
> >body
> >Unsubscribe mailto:majordomo@net.doit.wisc.edu and say
> >"unsubscribe flowscan" in message body
> >Archive http://net.doit.wisc.edu/~plonka/list/flowscan/archive/
>
>
>
>
> _________________________________________________________________
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
--
Help mailto:majordomo@net.doit.wisc.edu and say "help" in message body
Unsubscribe mailto:majordomo@net.doit.wisc.edu and say
"unsubscribe flowscan" in message body
Archive http://net.doit.wisc.edu/~plonka/list/flowscan/archive/
This archive was generated by hypermail 2b25 : Sun Aug 18 2002 - 09:35:34 CDT