02-21-2011
How can I output all previous Unix commands in Solaris to a file??
Hello friends:
I login to solaris with a username/Password and I can see quite a lot of previous I use dbefore, it accumulates a lot, I hope to output them into a Command.txt file as reference, not copy/paste 1 by 1, is there any way I can collect all commands in batch then put into a file,
Please advise
Thanks in advance
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I can use history command in unix to view my last 50 commands. But how can I run the previous commands easily? Can history command help?
Firebird (2 Replies)
Discussion started by: firebirdonfire
2 Replies
2. UNIX for Dummies Questions & Answers
how do I make my arrow keys behave like they are on DOS.
ALSO i need editing on command promt like it is on DOS on my UNIX prompt
can anyone help pl.. (11 Replies)
Discussion started by: spotnis
11 Replies
3. UNIX for Dummies Questions & Answers
How could you put the output of two commands into one file using a single command? For example put the output of a grep command and a sort command into one file together.
Here is another rough explanation of what I am trying to do;
output of
$ grep pattern file1
plus output of
$ sort file... (8 Replies)
Discussion started by: enuenu
8 Replies
4. UNIX for Dummies Questions & Answers
Hi there again,
Running Solaris 10 with built-in Java. Seems to compile and run fine.
Problem is: Say I want to see contents of current directory. In a shell, I'd just write "ls" and it outputs the content.
When I write a Java file, I have the following line:
System.out.println("ls");
... (1 Reply)
Discussion started by: EugeneG
1 Replies
5. Solaris
hi friends,
I am working in Sun solaris unix 10 with shell commands and all these works properly.
Then i created a small function which includes these commands.
Now the problem arises. When the commands are run by calling this fuction.it
shows error.
Why i am not able to run the unix... (1 Reply)
Discussion started by: gjithin
1 Replies
6. Solaris
What settings should be done in order make UPARROW key to show previous commands on the shell prompt(Solaris)? (6 Replies)
Discussion started by: shafi2all
6 Replies
7. Solaris
I have to execute 2 commands everytime i reboot my Solaris machine.
Simple "share" and "chown" commands.
Is there anywhere (maybe a config file or something) where I can include these commands so that I do not have to manually run them everytime I reboot the machine?
Any help appreciated... (2 Replies)
Discussion started by: lydiaEd
2 Replies
8. Shell Programming and Scripting
Hi All
I have written the following script:
#!/bin/ksh
while read cmdline
do
echo `$cmdline`
pid="$cmdline"
done<commands.txt
===========
commands.txt contains:
ps -ef | grep abc | grep xyz |awk '{print $2};
My objective is to store the o/p of the command in a variable and do... (8 Replies)
Discussion started by: rahulparo
8 Replies
9. Shell Programming and Scripting
Hi This is continuation of previos thread
status=running
username=abc
password=123456
server=linux
The script was made which is used to capture the data from file
./scr test status
It will give result running
I have a case like
status = running
username=abc
password=123456... (14 Replies)
Discussion started by: parthmittal2007
14 Replies
10. UNIX for Dummies Questions & Answers
Hello,
I am new to this forum so any assistance would help.
I am currently trying to develop a script that extract all data from a log file with has the previous day's date.
$ <root@aixtest3> /var/log > more sudo.log
May 13 10:52:10 aixtest3 local2:notice sudo: tbrath : TTY=unknown ; ... (14 Replies)
Discussion started by: Kslew82
14 Replies
LEARN ABOUT OSX
opielogin
OPIELOGIN(1) General Commands Manual OPIELOGIN(1)
NAME
opielogin - Replacement for login(1) that issues OPIE challenges.
SYNOPSIS
opielogin [ -p ] [ -r hostname | -h hostname | -f username
| username ]
DESCRIPTION
opielogin provides a replacement for the login(1) program that provides OPIE challenges to users and accepts OPIE responses. It is downward
compatible with the keylogin(1) program from the Bellcore S/Key Version 1 distribution, which, in turn, is downward compatible with the
login(1) program from the 4.3BSD Net/2 distribution.
OPTIONS
-p By default, login discards any previous environment. The -p option disables this behavior.
-r Process remote login from hostname.
-h The -h option specifies the host from which the connection was received. It is used by various daemons such as telnetd(8). This
option may only be used by the super-user.
-f The -f option is used when a user name is specified to indicate that proper authentication has already been done and that no pass-
word need be requested. This option may only be used by the super-user or when an already logged in user is logging in as them-
selves.
username
The user name to log in as.
EXAMPLE
wintermute$ opielogin
login: kebe
otp-md5 499 wi43143
Password: (echo on)
Password:SLY BLOB TOUR POP BRED EDDY
Welcome to wintermute.
wintermute$
FILES
/etc/opiekeys -- database of information for the OPIE system.
/etc/opieaccess -- list of safe and unsafe networks and masks to go with them.
$HOME/.opiealways -- presence makes OPIE for logins mandatory for the user.
SEE ALSO
login(1), opie(4), opiekey(1), opiepasswd(1), opieinfo(1), opiesu(1), opieftpd(8), opiekeys(5), opieaccess(5)
AUTHOR
Bellcore's S/Key was written by Phil Karn, Neil M. Haller, and John S. Walden of Bellcore. OPIE was created at NRL by Randall Atkinson, Dan
McDonald, and Craig Metz.
S/Key is a trademark of Bell Communications Research (Bellcore).
CONTACT
OPIE is discussed on the Bellcore "S/Key Users" mailing list. To join, send an email request to:
skey-users-request@thumper.bellcore.com
7th Edition January 10, 1995 OPIELOGIN(1)