02-01-2008
Running command "md5" on remote host not working.
My question is very strange.
I can run ls command on remote host using ssh successfully. but when i try to run /sbin/md5 command on remote host. it doesnt run and get back to me on command prompt.
md5 command is exist on remote host.
This is what i tried which ran successfully.
Query - ssh -p 2222 remote.host.server ls /my/file/name.log
Output - /my/file/name.log
And this is what is not working.
Query - ssh -p 2222 remote.host.server md5 /my/file/name.log
Souce OS - Solaris
Remote OS - FreeBSD
Is this matter ? If yes how ?
Last edited by ynilesh; 02-01-2008 at 05:54 AM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello All, I am trying to list only directories in my current directory using the command "ls -d". But the output only contains the default directory "." and doesn't list the rest of the directories in the working directory. Can anyone explain why this is happening (2 Replies)
Discussion started by: igandu
2 Replies
2. HP-UX
Hi,
I have small script written in korn shell. When it is called from different script, its dumping core, but no core dump when we run it standalone.
And its not dumping core if we run the script using "/bin/sh" instead of "ksh"
Can some body please help me how to resolve this issue.
... (9 Replies)
Discussion started by: simhe02
9 Replies
3. UNIX for Advanced & Expert Users
Hi All,
When i try to do ssh from a linux to solaris box its throughing "Connection closed by remote host". Please not that this error is not occuring every time i do ssh, it occurs at random timing( Mostly ssh is successful) - unfortunately my script which is doing ssh is falling at this time... (4 Replies)
Discussion started by: pkumar7
4 Replies
4. Shell Programming and Scripting
This script is supposed to display a file ( crontab ), ask the user if they wish to update the file, then it goes through an update routine.
#!/bin/bash
FILE=/etc/crontab
tail -5 $FILE
echo -n "Does crontab need updating"
read HOURS
...routines ....etc...
Runs locally... (8 Replies)
Discussion started by: Bubnoff
8 Replies
5. UNIX for Advanced & Expert Users
I have three files a.txt , b.txt , c.txt in a directory called my_dir1 .These files were created before two or three months . I have a tar file called my_tar1.tar which contains three files a.txt , b.txt , d.txt . Somebody untarred the my_tar1.tar into my_dir1 directory. So existing two files were... (1 Reply)
Discussion started by: joe.mani
1 Replies
6. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
7. UNIX for Dummies Questions & Answers
Please can you help me understand the significance of providing arguments under sh -s in
> ssh -qtt ${user}@${host} "sh -s "${version}"" < test.sh (4 Replies)
Discussion started by: Sree10
4 Replies
8. AIX
I have searched many times but nothing found. Somebody help please :(:(:( (1 Reply)
Discussion started by: bobochacha29
1 Replies
9. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
10. Shell Programming and Scripting
I am trying to use the below sed command to replace all "|" to ^, in a folder had 50 dat files. when i tried with 1 file it worked but when i tried with wild card, is not working.
sed -i 's/"|"/\^/g' *.dat
Is this the proper way to use sed command thank you very much for help. (3 Replies)
Discussion started by: cplusplus1
3 Replies
RUP(1) BSD General Commands Manual RUP(1)
NAME
rup -- remote status display
SYNOPSIS
rup [host ...]
DESCRIPTION
The rup utility displays a summary of the current system status of a particular host or all hosts on the local network. The output shows the
current time of day, how long the system has been up, and the load averages. The load average numbers give the number of jobs in the run
queue averaged over 1, 5 and 15 minutes.
The rpc.rstatd(8) daemon must be running on the remote host for this command to work. The rup utility uses an RPC protocol defined in
<rpcsvc/rstat.x>.
EXAMPLES
example% rup otherhost
otherhost 7:36am up 6 days, 16:45, load average: 0.20, 0.23, 0.18
example%
DIAGNOSTICS
rup: RPC: Program not registered The rpc.rstatd(8) daemon has not been started on the remote host.
rup: RPC: Timed out A communication error occurred. Either the network is excessively congested, or the rpc.rstatd(8) daemon has terminated
on the remote host.
rup: RPC: Port mapper failure - RPC: Timed out The remote host is not running the portmapper (see rpcbind(8)), and cannot accommodate any
RPC-based services. The host may be down.
SEE ALSO
rpc.rstatd(8), rpcbind(8)
HISTORY
The rup command appeared in Sun-OS.
BUGS
The sorting options are not implemented.
BSD
June 7, 1993 BSD