Précédent   Forum des professionnels en informatique > Systèmes > Windows > Windows Serveur
Windows Serveur Forum d'entraide professionel pour Windows Serveur : NT, 2000, 2003 , Longhorn...
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 05/05/2011, 14h21   #1
Invité de passage
 
Inscription : janvier 2006
Messages : 17
Détails du profil
Informations forums :
Inscription : janvier 2006
Messages : 17
Points : 2
Points : 2
Par défaut Caractères générique pour transfert de fichiers avec PSFTP

Bonjour,

Je rencontre un problème pour automatiser des transferts de fichiers sécurisé avec PSFTP (provenant de l'installeur PUTTY).

Je n'arrive pas à utiliser les caractères générique pour faire du transfert de fichiers multiples.

lorsque je fais un put *.* de mon répertoire local sur un serveur distant, j'ai le message unable to open *.* alors qu'il y a bien des fichiers dans le répertoire local.

Et la documentation de PSFTP dit ceci:
Citation:
6.2.2 Wildcards in PSFTP
Several commands in PSFTP support ‘wildcards’ to select multiple files.

For local file specifications (such as the first argument to put), wildcard rules for the local operating system are used. For instance, PSFTP running on Windows might require the use of *.* where PSFTP on Unix would need *.

For remote file specifications (such as the first argument to get), PSFTP uses a standard wildcard syntax (similar to POSIX wildcards):

* matches any sequence of characters (including a zero-length sequence).
? matches exactly one character.
[abc] matches exactly one character which can be a, b, or c.
[a-z] matches any character in the range a to z.

[^abc] matches a single character that is not a, b, or c.

Special cases: [-a] matches a literal hyphen (-) or a; [^-a] matches all other characters. [a^] matches a literal caret (^) or a.

\ (backslash) before any of the above characters (or itself) removes that character's special meaning.
A leading period (.) on a filename is not treated specially, unlike in some Unix contexts; get * will fetch all files, whether or not they start with a leading period.
Quelqu'un a t'il une solution à ce problème ?
yellowdog est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 10h06.


 
 
 
 
Partenaires

Hébergement Web