Alex Dehaini wrote: >Recently, my boss asked me if we could see the nat >translations/sessions. I did some digging and found out we could by >using this command > >/sbin/shorewall show connections > >My question is - is the above command written to a log file. Can I >make the above command to write to a log file so I can review it >later?
It's Linux (ie a 'Unix-like' system), therefore you can do "command > file" eg : shorewall show connections > connections_log Worst case is if the command writes to std_err, in which case you'd have to add "2>&1" on the end, eg : command > log_file 2>&1 You can of course also use all the normal plumbing tools, eg : command | grep "pattern" > some_file This is all basic shell work. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Shorewall-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-users
