| /l3/users/Alexcr/asterisk/localhost/root :1 |
|
#l3bashrc [----] 0 L:[ 1+ 0 1/297] *(0 /7709b) 0035 0x023
#!/bin/sh
# (c) Igor Chubin, igor@chub.in, 2004-2006
# Environment variables set by the script:
#
# L3_SESSION_ID - uniq id of the LiLaLo-session
# L3_PARENT_TTY - name of tty on which script is running
</session>$proc_on_the_term" ] &122cho $57oc_on_th4428rm | grep -q script
PS1='[\u@\h:\W]\$ ' login_from start_time hostname tty
&& PS1='\[\033[0;31m\]'$PS1'\[\033[0m\]' \
|| PS1='\[\033[0;32m\]'$PS1'\[\033[0m\]' \
export L3_SESSION_ID=${RANDOM}${RANDOM}${RANDOM}${RANDOM}-`date +%s`
export PS1
uname -a | grep -qi bsd && bsd=yes
}l3_flush="-f"() #linux
[ -n "$bsd" ] && flush="-t 0" #freebsd
exec script $flush -c ${0#-} -q $L3_HOME/${L3_SESSION_ID}.script
l3_fix_prompt()nt" ] && parent="`ps waux | awk '{if ($2 == '$PPID') print $11; }'`"
}
login_from=`who | grep "${tty##/dev/}" | awk '{print $6;}' | tr -d '()'`
# ==
} l3_fix_prompt
_l3_env()
trap l3_close_session 2
{ trap l3_close_session EXIT
_l3_true
{
}
cat <<INFO > $L3_HOME/$L3_SESSION_ID.info
l3_close_session()
<ses(.
{ echo '<history>'
history | sed 's/&/\&/; s/</\</g; s/>/\>/g'
echo '</history>'
) >> $L3_HOME/$L3_SESSION_ID.info
<ppid>$PPID</ppid>
}
<start_time>$start_time</start_time>
_l3_init_prompt()
{
PS1='[\u@\h:\W]\$ '
_l3_tamper_commands
_l3_unset_internal
else
_l3_start_session
_l3_run_script
fi
}
# ===================== STAGE 1 ============================
1Help 2Save 3Mark 4Replac 5Copy 6Move 7Search 8Delete 9PullDn 10Quit
|
|
#22977166822784912493-1276535898.script [----] 0 L:[ 1+ 0 1/1025] *(0 /154575b) 0083 0x053
Script started on Mon 14 Jun 2010 09:18:18 PM MSD |
|
#24736200251370613626-1276536958.script [----] 0 L:[ 1+ 0 1/35326] *(0 /11913145b) 0083 0x053 ^[[12;60H âââââ
Script started on Mon 14 Jun 2010 09:35:58 PM MSD |
|
#l3bashrc [----] 0 L:[ 1+ 0 1/297] *(0 /7709b) 0035 0x023
#!/bin/sh 52 35 87 2542 060 0x03C
[ -n "$proc_on_the_term" ] && echo $proc_on_the_term | grep -q script
}
export L3_SESSION_ID=${RANDOM}${RANDOM}${RANDOM}${RANDOM}-`date +%s`
_l3_export L3_HOME=~/.lilalo/
mkdir -p $L3_HOME
{
tty=`/usr/bin/tty`
# Suuname -a | grep -qi bsd && bsd=yes rc script exits
parent=`cat /proc/$PPID/cmdline 2> /dev/null`
[ -z "$parent" ] && parent="`ps waux | awk '{if ($2 == '$PPID') print $11; }'`"
system=`uname -rs`
_l3_login_from=`who | grep "${tty##/dev/}" | awk '{print $6;}' | tr -d '()'`/usr/bin/pico /usr/bin/nano /usr/local/bin/vim'
#[ -n "$bsd" ] && login_from="" #FIXME!
}
hostname=`hostname -f 2> /dev/null`
_l3_start()
[ -n "$bsd" ] && hostname=`hostname`
_l3_is_running_here()
{
<------>ps waux | awk '{print $2" "$11 }' | grep -q ^$PPID" "script.
cat <<INFO > $L3_HOME/$L3_SESSION_ID.info
<user>$USER</user>
<session>f ^^^^ run on Linux
# and del vvvv this if it does
<local_session_id>$L3_SESSION_ID</local_session_id>
export L3_TTY=`/usr/bin/tty`.
<hostname>$hostname</hostname>=yes
proc_on_the_term=`w | grep "${L3_TTY##/dev/}" | awk '{print $8;}'`
# freeBSD:.
[ -n "$bsd" ] && \
proc_on_the_term=`w | grep "${L3_TTY##/dev/tty}" | awk '{print $6;}'`
{
echo $- | grep -q i || return 0
if _l3_is_running_here
then
_l3_env
_l3_init_prompt
l3_fix_prompt
_l3_tamper_editors
_l3_tamper_commands
_l3_unset_internal
else
_l3_start_session
_l3_run_script
fi
}
# ===================== STAGE 1 ============================
1Help 2Save 3Mark 4Replac 5Copy 6Move 7Search 8Delete 9PullDn 10Quit
<uid>$UID</uid> 122+35 157 4428 32 0x020
PS1='[\u@\h:\W]\$ 'from</login_from>
&& PS1='\[\033[0;31m\]'$PS1'\[\033[0m\]' \
|| PS1='\[\033[0;32m\]'$PS1'\[\033[0m\]' \
export PS1
}
uname -a | grep -qi bsd && bsd=yes
[ -n "$bsd" ] && flush="-t 0" #freebsd
l3_fix_prompt()ARENT_TTY=`/usr/bin/tty`
exec script $flush -c ${0#-} -q $L3_HOME/${L3_SESSION_ID}.script
}
# ==
_l3_env()
trap l3_close_session 2
{ trap l3_close_session EXIT
true
}
l3_close_session()
(.
{ echo '<history>'
history | sed 's/&/\&/; s/</\</g; s/>/\>/g'
echo '</history>'
) >> $L3_HOME/$L3_SESSION_ID.info
<ppid>$PPID</ppid>
}
<start_time>$start_time</start_time>
_l3_init_prompt()
{
PS1='[\u@\h:\W]\$ '
|
|
#22977166822784912493-1276535898.script [----] 0 L:[ 1+ 0 1/1025] *(0 /154575b) 0083 0x053
Script started on Mon 14 Jun 2010 09:18:18 PM MSD |
|
#24736200251370613626-1276536958.script [----] 0 L:[ 1+ 0 1/35326] *(0 /11913145b) 0083 0x053 ^[[12;60H âââââ
Script started on Mon 14 Jun 2010 09:35:58 PM MSD |