But Microsoft services for UNIX is for integrating Windows into their existing UNIX-based environments..right?
Not sure what you mean, but it's a relatively complete environment built on top of NT's POSIX subsystem. I use ver 3.5 on both XP and 2K.
Code:
getopt(1) getopt(1)
getopt
NAME
getopt - parse utility options
SYNOPSIS
set -- 'getopt optstring $*'
DESCRIPTION
The getopt(1) utility (not to be confused with the getopts(1) command)
separates options in command lines so they can be parsed and validated by
shell procedures. The opstring argument is a string of recognized option
letters. If a letter is followed by a colon, the option is expected to
have an argument which may or may not be separated from the option by
blank space. The special option "--" delimits the end of the options. The
getopt(1) utility places "--" in the arguments at the end of the options,
or it will recognize "--" if it is explicitly used. The shell arguments
$1, $2, and so on, are reset so that each option is preceded by a "-" and
in its own shell argument; each option argument is also in its own shell
argument.
DIAGNOSTICS
The getopt(1) utility prints an error message on standard error if it
encounters an option letter not specified in the opstring argument.
SEE ALSO
getopts(1)
getopt(3)
Hi,
Below is the script which ftps the file from unix server and putting in a different directory(but on unix server)
How can i ftp the files from unix server and to place in a secure location on windows server? what changes needs to be done to the below script?
How can this be... (1 Reply)
I'm trying to write a Perl script where a file from a UNIX server box connects to a Windows server box and copies that file into the Window box.
The main problem I have right now is that whenever I try to connect to the Windows box, the connection is refused.
The error message that always pops... (2 Replies)
Can anybody please help me on how to code for the below requirement:
I need to write a shell script (on different unix server) to copy files from multiple folders (ex. BRN-000001) from one windows server (\\boldls-mwe-dev4)to a different windows server(\\rrwin-ewhd04.ecomad.int). This shell... (4 Replies)
I have a Perl script that worked fine before moving it to justhost.com. It was on a Windows/Apache server. Just host is using UNIX. Other Perl scripts on other sites that were also moved work fine so I know Perl is functioning.
The script is called cwrmail.pl and is located in my cgi-bin.
When I... (9 Replies)
hi
i need to transfer some files from windows server to unix server using SFTP. but before transferring the files, i need to check the
existence of a particular file in the remote directory (say r_dir1). if the file is present, then SFTP all the files.
after SFTPing the files from the remote... (1 Reply)
hi guys,
i need a script to sftp the file from windows to unix server ....(before that i have to check whether the file exists in the windows server or not
and again i have to reverse sftp the files from unix to windows server.....
regards,
Vasa Saikumar. (13 Replies)
I need to transfer files from a Windows server to the Unix server and have to run some shell script on it to get the required output.
Is it possible to transfer files from Windows server to unix server through any shell script?
If so can you please help me with the details.
Thanks in... (8 Replies)
Hi Team,
I had a requirement to write a shell script which automatically transfer the files from unix server to windows server. I can able to unix to unix using Scp command. I am not sure how to do unix to windows.
I am very new on this concept.
Could you please help me or guide in... (4 Replies)
I have two servers linux and windows and i want to compare files which are in unix server that to windows server and find out which are missing
that means i have 50 files with 6000 records in each file on linux server and i want to verify weather these 50 files are present in windows server... (5 Replies)
Hi All
I need to transfer a file from a UNIX server to a windows server.
I saw that it is possible to do this using scp command by looking at the forum listed below:
... (2 Replies)
Discussion started by: vx04
2 Replies
LEARN ABOUT DEBIAN
afsmonitor
AFSMONITOR(5) AFS File Reference AFSMONITOR(5)NAME
afsmonitor - Provides instructions for the afsmonitor command
DESCRIPTION
The afsmonitor configuration file determines which machines the afsmonitor command probes for File Server or Cache Manager statistics and
which statistics it gathers. Use the -config argument to the afsmonitor command to identify the configuration file to use.
The instructions that can appear in the configuration file are as follows:
cm <host name>
Names a client machine for which to display Cache Manager statistics. The order of "cm" lines in the file determines the order in which
client machines appear from top to bottom on the "System Overview" and "Cache Managers" output screens.
fs <host name>
Names a file server machine for which to display File Server statistics. The order of "fs" lines in the file determines the order in
which file server machines appear from top to bottom on the "System Overview" and "File Servers" output screens.
thresh (fs | cm) <field> <thresh> [<cmd>] [<arg> ...]
Assigns the threshold value thresh to the statistic field, for either a File Server statistic ("fs") or a Cache Manager statistic
("cm"). The optional cmd field names a binary or script to execute each time the value of the statistic changes from being below thresh
to being at or above thresh. A change between two values that both exceed thresh does not retrigger the binary or script. The optional
arg fields are additional values that the afsmonitor program passes as arguments to the cmd command. If any of them include one or more
spaces, enclose the entire field in double quotes.
The afsmonitor program passes the following parameters to the cmd:
<hostname> (fs|cm) <field> <thresh> <actual> [<arg> ...]
The parameters "fs", "cm", <field>, <thresh>, and <arg> correspond to the values with the same name on the thresh line. The <hostname>
parameter identifies the file server or client machine where the statistic has crossed the threshold, and the <actual> parameter is the
actual value of <field> that exceeds the threshold value.
Use the "thresh" line to set either a global threshold, which applies to all file server machines listed on "fs" lines or client
machines listed on "cm" lines in the configuration file, or a machine-specific threshold, which applies to only one file server or
client machine.
o To set a global threshold, place the thresh line before any of the "fs" or "cm" lines in the file.
o To set a machine-specific threshold, place the thresh line below the corresponding "fs" or "cm" line, and above any other "fs" or
"cm" lines. A machine-specific threshold value always overrides the corresponding global threshold, if set. Do not place a "thresh
fs" line directly after a "cm" line or a "thresh cm" line directly after a "fs" line.
show (fs | cm) field/group/section
Specifies which individual statistic, group of statistics, or section of statistics to display on the "File Servers" screen ("fs") or
"Cache Managers" screen ("cm") and the order in which to display them. The appendix of afsmonitor statistics in the OpenAFS
Administration Guide specifies the group and section to which each statistic belongs. Include as many "show" lines as necessary to
customize the screen display as desired, and place them anywhere in the file. The top-to-bottom order of the "show" lines in the
configuration file determines the left-to-right order in which the statistics appear on the corresponding screen.
If there are no "show" lines in the configuration file, then the screens display all statistics for both Cache Managers and File
Servers. Similarly, if there are no "show fs" lines, the "File Servers" screen displays all file server statistics, and if there are no
"show cm" lines, the "Cache Managers" screen displays all client statistics.
# comments
Precedes a line of text that the afsmonitor program ignores because of the initial number ("#") sign, which must appear in the very
first column of the line.
For a list of the values that can appear in the field/group/section field of a "show" instruction, see the afsmonitor statistics appendix
to the OpenAFS Administration Guide.
SEE ALSO afsmonitor(1)COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas
Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
OpenAFS 2012-03-26 AFSMONITOR(5)