Hi...
i am trying to ping my servers .The hostnames are present in a file .They are separated by spaces in the file .
i am doing the following :
a=1
for name in $(cat host2 |cut -d" " -f$a)
do
echo Pinging server $name
ping -c5 $name
a=$a+1
done
It is... (3 Replies)
i have these data in a variable "$test"
BUNGA TERATAI 3 5055 ITH 1 1
JADE TRADER 143W ITH 4 4
MOL SPLENDOR 0307A ITH 3 3
the red coloured are the ones that i want to take and compare
what I need to do is to take out the red coloured and then compare to another variable, if same then... (0 Replies)
Hi,
Is it possible to assign one variable to other.
eg.
v1="table1"
v2="20000"
I want table1 to assign 20000
table1=20000
Is there any way?
Thanks (2 Replies)
Hi
I have webserver that I do read data from.
Data are stored like this:
Huston |1
Portland |2
Hazen |1
Minneapolis |4
Albany |1
Pittsburg |1
Albany |1
Huston |1
Portland|1
Hazen |2
Albany |2
Huston |1
Hazen |1
Script #!/bin/sh
user="admin" (1 Reply)
Hello all,
I find it hard to explain what I need so I will post the code
OVZINCLUDE="16810 16811 1689"
PLUS_16810="test"
PLUS_16811="test"
for VPS in $OVZINCLUDE
do
echo "Dumping VPSes: $OVZINCLUDE "
vzdump --compress --snapshot ${PLUS_$VPS} $VPS
done
... (2 Replies)
Simple enough problem I think, I just can't seem to get it right.
The below doesn't work as intended, it's just a function defined in a much larger script:
CheckValues() {
for field in \
Group_ID \
Group_Title \
Rule_ID \
Rule_Severity \
... (2 Replies)
I have a group of variables myLINEcnt1 - myLINEcnt10. I'm trying to printout the values using a for loop. I am at the head banging stage since i'm sure it has to be a basic syntax issue that i can't figure out.
For myIPgrp in 1 2 3 4 5 6 7 8 9 10; do
here i want to output the value of... (4 Replies)
Hello guys,
This truly is a newbie question. I'm trying to make a loop to execute simultaneous commands indefinitely while using variable. Here is how my mess looks like (this is just an example):
#!/bin/bash
IP=`shuf -n 1 IP.txt` # I figured this would be easier to select random lines... (4 Replies)
Hello All,
Maybe I'm Missing something here but I have NOOO idea what the heck is going on with this....?
I have a Variable that contains a PATTERN of what I'm considering "Illegal Characters". So what I'm doing is looping
through a string containing some of these "Illegal Characters". Now... (5 Replies)
Hi All,
I have a file which has hundred of records with fixed number of fields. In each record there is set of 8 characters which represent the duration of that activity. I want to sum up the duration present in all the records for a report. The problem is the duration changes per record so I... (5 Replies)
Discussion started by: danish0909
5 Replies
LEARN ABOUT MOJAVE
mountd
MOUNTD(8) BSD System Manager's Manual MOUNTD(8)NAME
mountd -- service remote NFS mount requests
SYNOPSIS
Obsolete. See nfsd(8).
DESCRIPTION
The mountd daemon was formerly the server for NFS mount requests from NFS clients. This functionality has been moved into the NFS server
daemon nfsd(8).
Please refer to nfsd(8) for NFS server documenation.
The following is a list of former mountd options that are now available as nfsd(8) options:
mountd option nfsd option Description
-n-N allow non-root mounts
-r-R allow regular file mounts
exportsfile -F exportsfile alternate exports file
However, such configuration options are normally specified via nfs.conf(5).
When the NFS server is started, it loads the export host addresses and options into the kernel using the nfssvc(2) system call. After chang-
ing the list of exports (either directly or indirectly via a change in netgroup membership), the administrator should send a hangup signal to
the nfsd daemon to get it to reload the export information:
kill -s HUP `cat /var/run/nfsd.pid`
For backwards compatibility, the following should also work:
kill -s HUP `cat /var/run/mountd.pid`
Any errors encountered while processing the export entries will be logged via syslog(3).
FILES
/etc/exports the list of exported filesystems
/var/run/mountd.pid the pid of the currently running mountd
/var/run/mountdtab the current list of outstanding mounts served
/var/run/mountdexptab
information about exported file systems and directories (UUIDs, handles, ...)
SEE ALSO nfsd(8), exports(5), nfs.conf(5), nfsstat(1), portmap(8), showmount(8)HISTORY
The mountd utility first appeared in 4.4BSD. It's functionality was merged into nfsd(8) in Darwin 9.
BSD November 10, 2006 BSD