![]() |
Hallo en welkom van de Verenigde Staten aan de UNIX en Linux Forum! Bedankt voor uw bezoek en Deelnemen aan onze wereldwijde gemeenschap.
|
|
google unix.com
|
|||||||
| Forums | Registreer | Forum Regels | Links | Albums | Veelgestelde vragen | Ledenlijst | Kalender | Zoeken | Today's Posts | Markeer forums als gelezen |
| UNIX voor Dummies Questions & Answers Als u niet zeker weet waar je een Unix-of Linux vraag, post het hier. Alle UNIX-en Linux beginners van harte welkom!! |
Meer UNIX en Linux Forum Onderwerpen Misschien vindt u Helpful
|
||||
| Draad | Thread Starter | Forum | Antwoorden | Last Post |
| Changing Windows Server aliasnaam op Windows of Unix? | NycUnxer | UNIX voor Dummies Questions & Answers | 1 | 03-26-2008 05:54 PM |
| SFTP uit ramen E: / Unix-server | pranavagarwal | Programmeren en Shell Scripting | 12 | 11-28-2007 10:58 |
| Shell script om ftp van Windows Server | shilpa.rajput | Programmeren en Shell Scripting | 8 | 11-07-2007 12:52 AM |
| Windows Client Vs Unix Server? | collins | Hoog Niveau Programmering | 0 | 10-05-2004 11:49 PM |
| Windows Server 2k3 vs Unix | CapsuleCorpJX | UNIX voor Dummies Questions & Answers | 1 | 08-08-2004 06:21 |
![]() |
|
|
LinkBack | Thread Tools | Zoeken in deze Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Script draait perfect op UNIX server ... Niet via MSK Tool Kit op Windows Server
Ik heb een. Sh script dat draait prima op alle UNIX servers (AIX, SunSolaris). Het script vereist twee verplichte parameters en vele optionele parameters. Nu op een andere client plaats die op een Windows Server, als ik probeer om het script uit te voeren door middel van MKS Toolkit, zijn er enkele problemen. Het script draait zeer goed als ik geen optionele parameters geven. Ik begrijp niet waarom het script niet te behandelen die als optionele parameters. Ben ik een beroep op de verkeerde shell? Ik probeerde vele opties ...
Sample script: Code:
#!/bin/ksh
while getopts :s:u:p:f:m:w:r: Option
do
case $Option in
s) Server=$OPTARG;;
u) User=$OPTARG;;
p) PassWd=$OPTARG;;
f) ParmFile=$OPTARG;;
m) Mode=$OPTARG;;
w) Warn=$OPTARG;;
r) Rows=$OPTARG;;
:) echo "ERROR: Invalid argument. $OPTARG requires a value."
display_usage;;
?) echo "ERROR: Unknown option $OPTARG."
display_usage;;
esac
done
shift `expr $OPTIND - 1`
Code:
BatchRun.sh -p <optional> <mandatory> <mandatory> Gelieve advies als iemand hetzelfde probleem had .. |
|
||||
|
Ik gebruik MSK Toolkit en nog niet hebt gedownload Cygwin ...
Maar Microsoft-services voor UNIX is voor de integratie van Windows in hun bestaande UNIX-gebaseerde omgevingen .. toch? Ik ben in staat om de shell-scripts uitvoeren ... Het is gewoon dat het MSK Toolkit is niet het nemen van de-f of-n of-p optionele parameters. |
|
||||
|
Citaat:
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)
|
|
||||
|
Stuur me een prive bericht
Hallo, Mr Porter.
Ik probeer Windows SFU-versie 3.5 te gebruiken om een UNIX-poort POSIX compliant C programma voor Windows. U zegt dat u deze versie gebruikt, hoeft u deze gebruiken om programma's te compileren of gewoon voor andere taken? Het probleem dat ik ben actief in is dat het schijnt zijn er een heleboel van Windows externe verwijzingen krijgen geworpen dat automatisch door de CC-commando dat niet in de bibliotheken die door de SFU-systeem. De specifieke externe verwijzing is __security_cookie en in Windows het is in het mscvrt.lib bestand, maar dat lijkt niet te zijn in een van de. Bestanden een door de SFU. Elke vorm van hulp zou kunnen bieden voor mij op dit onderwerp zou zeer gewaardeerd worden. |
![]() |
| Bladwijzers |
| Thread Tools | Zoeken in deze Thread |
| Display Modes | Beoordeel deze draad |
|
|