check mtime of bash history file
This commit is contained in:
@@ -2,13 +2,15 @@
|
|||||||
|
|
||||||
source functions.sh
|
source functions.sh
|
||||||
# check that alias has been tried
|
# check that alias has been tried
|
||||||
echo -ne "host\tname\t<+CHANGEME+>\n"
|
echo -ne "host\tname\troot history\tbash history\t<+CHANGEME+>\n"
|
||||||
for host in /srv/lxc/epsi/b1/* ; do
|
for host in /srv/lxc/epsi/<+CHANGEME+>/* ; do
|
||||||
root=${host}/rootfs
|
root=${host}/rootfs
|
||||||
host=$(basename $host)
|
host=$(basename $host)
|
||||||
hostname=$(grep HOSTNAME ${root}/etc/sysconfig/network | cut -f2 -d=)
|
hostname=$(grep HOSTNAME ${root}/etc/sysconfig/network | cut -f2 -d=)
|
||||||
test -f ${root}/etc/motd && user="$(cat ${root}/etc/motd | sed 's/\n//')\t"
|
test -f ${root}/etc/motd && user="$(cat ${root}/etc/motd | sed 's/\n//')\t"
|
||||||
echo -ne "${hostname}\t${user}"
|
echo -ne "${hostname}\t${user}"
|
||||||
|
fileMTime ${root}/root/.bash_history
|
||||||
|
fileMTime ${root}/home/formation/.bash_history
|
||||||
<+CHANGEME+>
|
<+CHANGEME+>
|
||||||
echo
|
echo
|
||||||
done
|
done
|
||||||
Reference in New Issue
Block a user