07-31-2012
you can ping the host can compare it to you ip. If is is different than it is not local.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am running Redhat 7.2. I am using a router with dhcp setup for my computer. When logging in, I get the error "dhcppc1 not found". My router assigned that host name to my pc for dhcp. It says to modify the /etc/hosts file to keep from having any problems. Everything seems to be working ok... (2 Replies)
Discussion started by: jeremiebarber
2 Replies
2. UNIX for Advanced & Expert Users
hi there
I've got a strange problem with a webserver box (suse linux 7.2). My MTA is sendmail, and when I tried manually send a mail.
Sendmail -v "user@something" < /etc/hosts
The Server tried
"simon@localhost... Connecting to local..." but nothing happend and the system hold on.
This... (3 Replies)
Discussion started by: mrsaint
3 Replies
3. UNIX for Dummies Questions & Answers
Dear Guys ,
Please again , i could not find a solution for my server linux red hat 9 .
when i leave it about more than 5 min ideal it goes to something like sleep mode and all services stop and even TCP/IP .. what shall i do ???
another thing please , when i installed the server , i gave... (3 Replies)
Discussion started by: tamemi
3 Replies
4. Solaris
Hi all,
i am copying .gz files from production server to development server using
"scp" command.my requirement is after copying .gz files i want to delete old
.gz files(two days back) in development server from production server.
like this way i need to delelte .log ,.z and .dmp files... (3 Replies)
Discussion started by: krishna176
3 Replies
5. IP Networking
hello i have a ubuntu ssh server that i can acess from any of my comnputers but only if they are on the same wireless network as the server. i tested trhis my tehtehring my samsung blackjack to my windows partition and installing openssh to windows it works when windows is on the wireless but no... (1 Reply)
Discussion started by: old noob
1 Replies
6. UNIX for Advanced & Expert Users
I do a ssh to remote host(A1) from local host(L1). I then ssh to another remote(A2) from A1.
When I do a who -m from A2, I see the "connected from" as "A1".
=> who -m
userid pts/2 2010-03-27 08:47 (A1)
I want to identify who is the local host who initiated the connection to... (3 Replies)
Discussion started by: gomes1333
3 Replies
7. Shell Programming and Scripting
hi
I have a script to login from a host "A" to a list of hosts in a file and perform some commands inside it...its somethin like this
for i in `cat file`
do
ssh -t $i " command1 ; command2; ..."
done
I wanna save the outputs in a file in the current host "A" i.e from where I am... (3 Replies)
Discussion started by: ningy
3 Replies
8. Shell Programming and Scripting
Hi friends,
i need to prepare a script ( in perl)
i have a file called "demo.exe" in my local unix host.
i have a list of remote hosts in a file "hosts.txt"
now i need to push "demo.exe" file to all the hosts in "hosts.txt" file.
for this i need to prepare a script(in perl, but shell... (5 Replies)
Discussion started by: siva kumar
5 Replies
9. Shell Programming and Scripting
Can anyone suggest a workaround
zone_5.org='/qaz/qwe/path/tns.osn'
output
/home/bingo/XXX_script.sh: line 180: zone_5.org=/qaz/qwe/path/tns.osn: no parent
The path does not exist on the local machine, the allocation used to work till the server was upgraded.
Red Hat Enterprise Linux... (2 Replies)
Discussion started by: squrcles
2 Replies
10. Shell Programming and Scripting
I'm trying to copy a file myfile.scr from my local Linux server to multiple folders on remote AiX server using single rsync command.
Below command helps me copy the file "myfile.scr" from my localhost to a remote host folder "/app/deployment/tmpfiles"
rsync --delay-updates -F --compress... (1 Reply)
Discussion started by: mohtashims
1 Replies
RUP(1) BSD General Commands Manual RUP(1)
NAME
rup -- remote status display
SYNOPSIS
rup [-dshlt] [host ...]
DESCRIPTION
rup 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 aver-
aged over 1, 5 and 15 minutes.
The following options are available:
-d For each host, report what its local time is. This is useful for checking time syncronization on a network.
-s Print time data in seconds (seconds of uptime or seconds since the epoch), for scripts.
-h Sort the display alphabetically by host name.
-l Sort the display by load average.
-t Sort the display by up time.
The rpc.rstatd(8) daemon must be running on the remote host for this command to work. rup uses an RPC protocol defined in
/usr/include/rpcsvc/rstat.x.
EXAMPLE
example% rup otherhost
otherhost 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 portmap(8) ), and cannot accomodate any RPC-based services. The host may be down.
SEE ALSO
ruptime(1), portmap(8), rpc.rstatd(8)
HISTORY
The rup command appeared in SunOS.
Linux NetKit (0.17) August 15, 1999 Linux NetKit (0.17)