mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-31 23:22:37 +01:00
pbot.sh: strange behavior with &> -- using 2> instead
This commit is contained in:
parent
acbed6810f
commit
016aba76db
@ -13,7 +13,7 @@ use warnings;
|
||||
# These are set automatically by the build/commit script
|
||||
use constant {
|
||||
BUILD_NAME => "PBot",
|
||||
BUILD_REVISION => 333,
|
||||
BUILD_REVISION => 334,
|
||||
BUILD_DATE => "2011-12-11",
|
||||
};
|
||||
|
||||
|
4
pbot.sh
4
pbot.sh
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
mv log/log log/log-`date +%Y%m%d-%H:%M.%N` &> /dev/null
|
||||
mv log/stderr_log log/stderr_log-`date +%Y%m%d-%H:%M.%N` &> /dev/null
|
||||
mv log/log log/log-`date +%Y%m%d-%H:%M.%N` 2> /dev/null
|
||||
mv log/stderr_log log/stderr_log-`date +%Y%m%d-%H:%M.%N` 2> /dev/null
|
||||
|
||||
perl pbot.pl 2> log/stderr_log
|
||||
cat log/stderr_log
|
||||
|
Loading…
Reference in New Issue
Block a user