Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
6249 connectés 

  FORUM HardWare.fr
  Programmation
  Shell/Batch

  automatisation ln -s

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

automatisation ln -s

n°937029
Titcheo
Posté le 04-01-2005 à 17:49:41  profilanswer
 

Bonjour a tous, bonne année!!!
 
Bon je suis en train de faire un site sur ma machine et j'aimerai faire une galerie photo! Je voudrais donc realiser un petit script afin qu'il cré dans un repertoire se  trouvant dans /var/www (par exemple photos) des liens -s avec mes photos se trouvant dans mon /home/user/photos!!!
Est ce que qqun pourrais m'aider s'il vous plait! car j peur que ca me prenne bcp de tps de créer 1000 lien a la main!!! lol  
 
Merci de l'aide que vous pourrez m'apporter.

mood
Publicité
Posté le 04-01-2005 à 17:49:41  profilanswer
 

n°937035
dsls
Posté le 04-01-2005 à 17:53:45  profilanswer
 

man lndir

n°937037
schnapsman​n
Zaford Beeblefect
Posté le 04-01-2005 à 17:54:59  profilanswer
 

c'est mon jour de bonté de l'année, je donne la soluce bien que ce soit hors charte :o
 

Code :
  1. #!/bin/sh
  2. while [ "$#" -gt "0" ]
  3. do
  4.   ln -s $1 /var/www
  5.   shift
  6. done


---------------
From now on, you will speak only when spoken to, and the first and last words out of your filthy sewers will be "Sir!"

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  Shell/Batch

  automatisation ln -s

 

Sujets relatifs
Script d'automatisation de transfert de fichier via FTPautomatisation et formulaire
[C#] Automatisation d'Excel à l'aide du modèle objet ExcelAutomatisation ?
automatisation sqlAutomatisation d’envoi d’alerte
[VB] Automatisation initialisation de donnée ds un type style recordMySQL automatisation...
Script d'automatisation d'insertion d'infos dans une table mysqlautomatisation d'une installation...
Plus de sujets relatifs à : automatisation ln -s


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)