10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm currently trying to read several values into different variables.
Actually, what I'm doing works, but I get an error message.
My attempts are:
read strCPROC strIPROC strAPROC <<<$(ssh -n -T hscroot@$HMC "lshwres -r proc -m $strIDENT --level sys -F \"configurable_sys_proc_units... (11 Replies)
Discussion started by: NKaede
2. Shell Programming and Scripting
Hi, I need to get the output of ssh for multiple servers using for loop which is returning how many users are logged in, one below the other. But i'm getting output in single line for one of the servers.
XXXX pts/0 Oct 18 08:45 abcd pts/3 Oct 18 06:46 abcde pts/4 Oct 18 06:46 xyzqw pts/5 Oct 18... (14 Replies)
Discussion started by: sam_bd
3. Shell Programming and Scripting
I am using below command in a shell script.
ssh -q RemoteUser@RemoteServer "/export/sctipt/test.ksh"
It is executing succesfully but the below is the output getting displayed.
tset: standard error: Invalid argument
Can you please help me in understanding below.
... (8 Replies)
Discussion started by: Girish19
4. Shell Programming and Scripting
I am using UNIX to create a script on our system. I have setup my commands to append their output to an outage file. However, some of the commands return no output and so I would like something to take their place.
What I need
The following command is placed at the prompt:
TICLI... (4 Replies)
Discussion started by: jbrass
5. UNIX for Dummies Questions & Answers
Hi, i'm trying to gather details from remote hosts and want them to be written to my local linux machine from where i'm using SSH. My command looks some thing like this
ssh -q remotehost 'bash -s' <command.txt
where command.txt is a file in my local machine containing
ps -ef |grep httpd |... (1 Reply)
Discussion started by: poga
6. Red Hat
I ran the following command.
cat abc.c > abc.c
I got message the following message from command cat:
cat: abc.c : input file is same as the output file
How the command came to know of the destination file name as the command is sending output to standard file. (3 Replies)
Discussion started by: ravisingh
7. Shell Programming and Scripting
I'm creating a script that runs a few commands on some boxes and everything can be logged EXCEPT the java -version command, there doesn't seem to be any output...
Can anyone help explain why this does not work? Do I need to do something extra to append the output from the java... (3 Replies)
Discussion started by: Keepcase
8. Shell Programming and Scripting
Net::SSH::Perl ...... how to print the output in a proper format
my $cmd = "ls -l";
my $ssh = Net::SSH::Perl->new($host);
my($stdout, $stderr, $exit) = $ssh->cmd("$cmd");
the script works fine, but i am unable to see the output... (2 Replies)
Discussion started by: gsprasanna
9. UNIX for Dummies Questions & Answers
Please advise which command/command line shall I run;
1) to display the command and its output on console
2) simultaneous to save the command and its output on a file
I tried tee command as follows;
$ ps aux | grep mysql | tee /path/to/output.txt
It displayed the... (7 Replies)
Discussion started by: satimis
I'm trying to understand what is happening.
System running OpenBSD 3.3
Connect to the system using PuTTy or with the SSH.COM SSH client, issue a DF command.
First line that comes back is:
Filesystem 1K-blocks Used Avail Capacity Mounted on
When I connect the the... (13 Replies)
Discussion started by: woodstone