12-03-2008
you can use the command
set -o vi
and use the "esc" & "k" to list the last command just as use the vi shutkey
sometimes it is userful for someone! and i like it!
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I have this command in my script and it's working fine with AIX:
ls init?*.ora 2>/dev/null | egrep -i -e ""
the same command is failing in Solaris 10.
does anyone have better idea how to make it work for both ?
Thanks (2 Replies)
Discussion started by: talashil
2 Replies
2. AIX
AIX:Command to get netaddress/subnet address command in IPv4/IP6
Can anybody help us with a command to retrieve netaddress/subnet address command in IPv4/IP6 on aix machine.
net/subnet address is in the format 172.16.212.0(signifies all 255 machines in an IPv4 network) (2 Replies)
Discussion started by: rookie8278
2 Replies
3. AIX
When I import VG, it shows:
0516-622 synclvodm: Warning, cannot write lv control block data.
I found AIX V4.3 have updatelv command can recovery LVB from VG, however, updatelv is not existed on AIX 5L, which command to replace it? (2 Replies)
Discussion started by: rainbow_bean
2 Replies
4. AIX
I am working on AIX 5.2 platform and working with AIX command 'at' . May
I am getting a weird problem . I have a script which is scheduled to run
everyday.It uses 'at' command to call one java program.
Most of the times 'at' command works fine without any issue but sometimes 'at' command... (10 Replies)
Discussion started by: techi_0408
10 Replies
5. UNIX for Dummies Questions & Answers
1.What is the equivalent of the command "ls -ltr -h" in AIX..Which will list all file name with their size in GB
2. What comand can be used to display the output of df -k in GB in AIX. In in solaris we do df -h.
Thanks in advance (0 Replies)
Discussion started by: e263041
0 Replies
6. AIX
I don't know to aix command to check
number of cpu, speed of cpu
memory, size, memory type (ex. memory type chipkill)
internal harddisk, size
how many to seial I/O ?
fibre
network interface
raid controller, raid type
DVD-rom, speed DVD-rom
aix version... (1 Reply)
Discussion started by: lovenid
1 Replies
7. AIX
Hi
I use this "at" command to unmount 12 filesystems in my aix server
echo "ksh /usr/local/bin/umount.sh" | at now
i want to schedule it on a daily basis. I know that it can be done via crontab. But Im just curious to know if daily wise scheduling can also be done via the "at" command ?... (1 Reply)
Discussion started by: samsungsamsung
1 Replies
8. AIX
In Unix If we executed any command where will generate the particluar log related to command in Unix. (4 Replies)
Discussion started by: victory
4 Replies
9. AIX
I'm new for aix...I need a command or script to check the high usage of cpu process and the physical cpu utilization...
TIA
Sumanth (9 Replies)
Discussion started by: sumanthupar
9 Replies
10. Shell Programming and Scripting
Hi All,
I am trying to select 30 days older files under current directory ,but not from subdirectory using below command.
find <Dir> -type f -mtime + 30
This command selecting all the files from current directory and also from sub directory .
I read some documention through internet ,... (1 Reply)
Discussion started by: kommineni
1 Replies
log(8) System Manager's Manual log(8)
NAME
log - Records input and output from a program
SYNOPSIS
/usr/sbin/log <logfile> <command>
OPERANDS
The file in which to record the interaction being logged. The command to execute.
DESCRIPTION
The log program runs <command> and logs the input to and output from <command> to the <logfile> file. Input and output are logged until
<command> exits, the log program exits, and the exit status of <command> is returned.
The log program is used by the system installation procedure and the it(8) command to create the /var/adm/smlogs/install.log and
/var/adm/smlogs/it.log installation log files.
RESTRICTIONS
Because the log program is used in the installation standalone environment, program size was the greatest concern in its implementation.
The log program does not search for the PATH variable to locate <command> and error messages are terse.
The log program causes <command> to take standard input from and write standard output and standard error to UNIX pipes. Some commands
will not be able to operate in this environment; therefore, it is suggested that you use the script(1) command instead. UNIX shells will
not issue prompts when run from log unless the shell is started with an explicit interactive switch (-i for most shells). For example, log
foo.tmp /sbin/sh -i
In the previous example, foo.tmp is the name of <logfile>.
The log program intercepts end-of-file (usually Ctrl/d). Therefore programs which normally receive end-of-file as an exit command must
exit by some other means.
ERRORS
Log open error
Explanation:
The log program was unable to open <logfile>. Verify that the directory exists and that ownerships and permissions are set correctly.
Exec Error
Explanation:
The log program was unable to execute <command>. Verify that you specified a full pathname for <command> and that <command> is an exe-
cutable file.
Fork Error
Explanation:
The log program was unable to create one of the processes it requires to log data.
SEE ALSO
Commands: it(8), script(1)
log(8)