08-13-2010
the command to save session
I remember there is a command you can type and it records everything you type on after it...anybody can help a bit?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi
I want to know how to save all the command used by all the used under a particular root with the time stamp in a file.
Eg:
User Name: UX10
Time: 10:56
Command: LS
User Name: UX23
Time: 10:59
Command: MORE abc.txt
Please do help.
thanks and regards
-Anand (1 Reply)
Discussion started by: anandtharani
1 Replies
2. Fedora
Hello sir,
Im in a Fedora 9 system.
Im using screen to invoke the session that is created by me.
Whenever we open the terminal then a session is created by the operating system. I want to know what is the name of default session in screen command.
I could not get it using "screen -ls". Can you... (3 Replies)
Discussion started by: nsharath
3 Replies
3. Shell Programming and Scripting
Hi all,
is it possible to save the output of a unix command executed in perl to be saved in hash variable..
like i have the command
`find $mypath ! -user mainuser -printf \"\%u \%h\\n\"`;
this will print all the users other than mainuser with their paths.
so is possible to capture... (2 Replies)
Discussion started by: saapa
2 Replies
4. UNIX for Dummies Questions & Answers
hi, everyone:
I just wonder how to save the output of command, I mean everything, save as a string into a variable.
another question is I try to ls the details of a directory, but it works in the shell, not in the script.
for example
code: ls -ltr *se100* | grep ^- | tail -1 | awk '... (1 Reply)
Discussion started by: allenxiao7
1 Replies
5. Shell Programming and Scripting
Dear All,
I am writing a script and kind of stuck in a small thing. Cannot figure it out. so please help
I am logged in as root user. I want to switch user to "user1" inside the script and execute a specific command lets say "pwd" and come back where i started.
I know how to switch user,... (16 Replies)
Discussion started by: suhail.sadaqat
16 Replies
6. Shell Programming and Scripting
Hi,
in shell script, i have the command swstart -p which returns an output. i want to store the output of this command into a variable. how i can do that
excerpt from the script
#!/usr/bin/ksh
#
#
#
# Program: swstart -p
#
# Description: Starts the sentinels on Slave server
... (4 Replies)
Discussion started by: lookinginfo
4 Replies
7. Red Hat
I have setup public key based login to my CentOS VPS. I wish to disable direct root login and have created an admin user under wheel group and have modified /etc/sudoers file and gave Wheel group all privileges.
But now I am being prompted for password whenever I type sudo. I do not wish to... (4 Replies)
Discussion started by: JoyceBabu
4 Replies
8. Shell Programming and Scripting
Hi
Can anyone suggest how i can save a command into a file.
i am trying to execute couple of put commands which i want to write into a file.
example below
put sample.dat abcd@server.com
put sample1.dat abcd@server.com
.
.
.
tried cat but no luck
Please suggest how i can do... (1 Reply)
Discussion started by: ramkiran77
1 Replies
9. Shell Programming and Scripting
Hi all,
I am new in linux script, and I have the code below
#!/bin/bash
CMD="shuf -i 1-5 -n 1"
$CMD
echo $CMD
exit 0
if I run the $CMD, it will return me a shuffle value. However, I need to save the return value of the shuffle, and use it later on. I tried for example print the... (3 Replies)
Discussion started by: peuceul
3 Replies
10. Shell Programming and Scripting
I am trying to modify the "corestat v1.1" code which is in Perl.The typical output of this code is below:
Core Utilization
CoreId %Usr %Sys %Total
------ ----- ----- ------
5 4.91 0.01 4.92
6 0.06 ... (0 Replies)
Discussion started by: Zam_1234
0 Replies
LEARN ABOUT MOJAVE
net::dns::rr::sshfp5.18
Net::DNS::RR::SSHFP(3) User Contributed Perl Documentation Net::DNS::RR::SSHFP(3)
NAME
Net::DNS::RR::SSHFP - DNS SSHFP resource record
SYNOPSIS
use Net::DNS;
$rr = new Net::DNS::RR('name SSHFP algorithm fptype fp');
DESCRIPTION
DNS SSH Fingerprint (SSHFP) resource records.
METHODS
The available methods are those inherited from the base class augmented by the type-specific methods defined in this package.
Use of undocumented package features or direct access to internal data structures is discouraged and could result in program termination or
other unpredictable behaviour.
algorithm
$algorithm = $rr->algorithm;
The 8-bit algorithm number describes the algorithm used to construct the public key.
fptype
$fptype = $rr->fptype;
The 8-bit fingerprint type number describes the message-digest algorithm used to calculate the fingerprint of the public key.
fp
$fp = $rr->fp;
Hexadecimal representation of the fingerprint digest.
fpbin
$fpbin = $rr->fpbin;
Returns opaque octet string representing the fingerprint digest.
babble
print $rr->babble;
The babble() method returns the 'BabbleBubble' representation of the fingerprint if the Digest::BubbleBabble package is available,
otherwise an empty string is returned.
Bubble babble represents a message digest as a string of "real" words, to make the fingerprint easier to remember. The "words" are not
necessarily real words, but they look more like words than a string of hex characters.
Bubble babble fingerprinting is used by the SSH2 suite (and consequently by Net::SSH::Perl, the Perl SSH implementation) to display easy-
to-remember key fingerprints.
The 'BubbleBabble' string is appended as a comment to the RDATA when the string method is called.
COPYRIGHT
Copyright (c)2007 Olaf Kolkman, NLnet Labs.
Package template (c)2009,2012 O.M.Kolkman and R.W.Franks.
All rights reserved.
This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
perl, Net::DNS, Net::DNS::RR, RFC4255
perl v5.18.2 2014-01-16 Net::DNS::RR::SSHFP(3)