Sponsored Content
Full Discussion: redirection entree sortie
Top Forums Shell Programming and Scripting redirection entree sortie Post 302352483 by protocomm on Friday 11th of September 2009 12:32:31 PM
Old 09-11-2009
C'est 2>/dev/null que tu dois écrire qui veut dire "envoie les messages d'erreur à la poubelle".
2>&1 redirige les erreurs sur la sortie standard (ecran) donc les affiche ensuite tu dis envoie sortie ecran dans poubelle mais plus rien à afficher....

En espérant avoir été assez clair....

regarde ce lien...très intéressant....Chapitre

---------- Post updated at 08:32 AM ---------- Previous update was at 08:31 AM ----------

Euh dernière chose....on va se faire taper sur les doigts...ce forum est ANGLAIS...
@+
 

10 More Discussions You Might Find Interesting

1. Programming

Help with redirection

Here is my problem. I don't know make this redirection thing work. The output file (called output.c) looks like this #include<stdio.h> int main() { int k; int m; print f("%d\n", k); printf("%d\n", m); return 0; } the input file(called input.c) is this #include<stdio.h> int... (2 Replies)
Discussion started by: Shallon1
2 Replies

2. Shell Programming and Scripting

redirection

Hi, The code below works, it's a part of a bash shell script that serve to search a pattern $pattern_da_cercare in the files contained in a directory $directory_iniziale. Now the proble is: How can I redirect stderr to a file? PS: so I want to redirect ALL the errors to a file. I tryed... (9 Replies)
Discussion started by: DNAx86
9 Replies

3. Shell Programming and Scripting

redirection problem

hi all, how to redirect the stdout msg in command line and file at the same time? e.g i got the script named test.sh, content as following: #!/bin/sh echo "111" when i run the script ./test.sh > log.log, it will wirte the "111" into log.log, but how to show the "111" in command line... (2 Replies)
Discussion started by: eric_wong_ch
2 Replies

4. Shell Programming and Scripting

Redirection using csh

I have a csh script which I am using to run a program set data = $argv set inmod = $argv set nxz = $argv # Remove the file extension .pmod set data = ` echo $data | awk 'BEGIN { FS=".dat" } { print $1 }' ` set inmod = ` echo $inmod | awk 'BEGIN { FS=".vmod" } { print... (8 Replies)
Discussion started by: kristinu
8 Replies

5. UNIX for Dummies Questions & Answers

Help with Redirection

Hi Guys, I m new to UNIX and new to this forum. Was wondering if someone can help me understand redirection (standard input output pipeline etc) for starters, not too sure what this would mean who | sort > sortedfile | pr | lp im starting to understand common commands but when throwing... (2 Replies)
Discussion started by: jmack123
2 Replies

6. Shell Programming and Scripting

I/O redirection

Hello everyone,I'm reading a book and there's code fragment: exec 3>&1 ls -l 2>&1 >&3 3>&- | grep bad 3>&- exec 3>&- It says that the red part of that code does not close fd 3 but the green does close the fd 3.I can't understand that.....Why?Any predicate will be appreciated.:) (18 Replies)
Discussion started by: homeboy
18 Replies

7. Shell Programming and Scripting

redirection error

Hi i am facing a very strange problem suppose the parameters which i passed to the script is -o 140 then my code is as follows echo $* | awk '{ for ( i=0;i<=NF;i++){if ($i= -o) { print ${i+1} } } ' | read abc echo $abc abc=`echo $* | awk '{ for ( i=0;i<=NF;i++){if ($i= -o) { print... (5 Replies)
Discussion started by: aishsimplesweet
5 Replies

8. Shell Programming and Scripting

Redirection question

I want to redirect stderr and have the following peice of code $ cat t1.ksh #!/bin/ksh func2() { diff /tmp/jdlkwjdlkejew /tmp/djlkwejdlewdjew >$OUTPUT_FILE 2>>$ERR_FILE } func1() { let counter=0 while do print -u2 "Error: In main function" func2 let... (1 Reply)
Discussion started by: BeefStu
1 Replies

9. Shell Programming and Scripting

Redirection

Hello All, I am using the below script to gather various tools running by the user, we have more than 100 tools running on the server so my challenge is to redirect memory & cpu load to the file with the name of the tool.so am using the below script i am stucking how to redirect to the file... (2 Replies)
Discussion started by: ajaincv
2 Replies

10. UNIX for Dummies Questions & Answers

about different redirection

explain the redirections 1>, 2>, 3>, ..... and 1< ,2<,3<..... where we use these things thanks Thread moved from AIX forum (2 Replies)
Discussion started by: tsurendra
2 Replies
mbk2eagle     01/07/2002 ________________________

Cet  outil  permet, a partir d'une description structurelle d'une
carte (.vst), de generer un fichier script utilisable  par  Eagle
(logiciel  de routage de cartes).  Ce fichier permet de fournir a
Eagle, la liste des composants utilises ainsi que  l'interconnex-
ion de ces composants.

La  description  structurelle doit etre completee par trois types
de fichiers.  - Un fichier ";nom__de_figure.pin"  correspondant	a
la description des connexions de
  la  carte  circuit imprime, avec son environnement (connecteurs
de la carte).  - Un ou plusieurs fichiers ";composants.pin" corre-
spondants aux differents modeles de
  composants  qui doivent etre implantes sur la carte circuit im-
prime.	- Un fichier "nom__de_figure.cls" dans lequel on  definit
la classe des
  signaux  ainsi  que la rotation et le placement des differentes
instances
  des modeles. Par defaut la classe d'un signal est la classe 0.

Dans les fichiers, les lignes vides ou commencant par # sont  ig-
norees.

1.	 Organisation	  du	 fichier     "nom__de_figure.pin"
________________________________________________

Dans ce fichier on doit placer,  pour  chaque  connecteur  de  la
carte, les 2 rubriques dans l'ordre :

Rubrique  1  ----------  /MODELE  <instance>  <modele> <rotation>
<(coordonnees)>

<instance> correspond au nom d'instance du connecteur.

<modele> correspond au nom du fichier  Eagle  decrivant  le  con-
necteur. Il est de la forme : nom_modele@nom_bibliotheque

<rotation> On peut mettrel'une des valeurs : R0, R90, R180, R270.

<(coordonnees)>  position provisoire du connecteur (x y). Il doit
etre entierement dans la zone utilisable actuellement 100x160 mm.

Rubrique 2 ---------- /CONNECTEURS

On enumere les signaux du connecteur a	raison	d'un  signal  par
ligne, sous la forme :

<repere de broche> <nom du signal>

EXEMPLE
/MODELE P1 IBM8BIT@con-pc R90 (6.5 0.5) /CONNECTEURS B1 VSS B3 VDD B29 VDD B31 VSS A2 DATA(7) A3 DATA(6) A4 DATA(5) A5 DATA(4) A6 DATA(3) A7 DATA(2) A8 DATA(1) A9 DATA(0) A11 AEN 2. Organisation des fichiers "composants.pin" ______________________________________________ Dans ce fichier doit placer 2 rubriques dans l'ordre : Rubrique 1 ---------- /MODELE <modele> <modele> correspond au nom du fichier Eagle decrivant le connecteur. Il est de la forme : nom_modele@nom_bibliotheque Rubrique 2 ---------- /CONNECTEURS On enumere les signaux du composant sous la forme : <repere de broche> <nom du signal> EXEMPLE
/MODELE DIL08@dil (0.5 3.0) /CONNECTEURS 1 DATA 2 CLK 3 OE_N 4 CE_N 5 VSS 6 CEO 7 VPP 8 VDD 3. Organisation du fichier "nom__de_figure.cls" ________________________________________________ Dans ce fichier doit placer 2 rubriques dans l'ordre : Rubrique 1 ---------- /CLASS On enumere ensuite les signaux avec leur numero de classe, a rai- son d'un signal par ligne, sous la forme : <nom du signal> <numero de la classe> Inutile d'enumerer les signaux de classe 0. Cette rubrique peut etre vide, mais il doit y avoir ";/CLASS". Rubrique 2 ---------- /PLACEMENT On enumere ensuite les instances avec la rotation a effectuer et les coordonnees de placement, a raison d'une instance par ligne, sous la forme : <nom de l'instance> <rotation> <coordonnees> <rotation> On peut mettrel'une des valeurs : R0, R90, R180, R270. <(coordonnees)> position provisoire du composant (x y). Il doit etre entierement dans la zone utilisable de la carte, actuellement 100x160 mm. EXEMPLE
/CLASS CLK 1 VSS 2 VDD 2 /PLACEMENT IC1 R90 (4.25 1.2) IC2 R180 (3.25 1.2) IC3 R0 (3.25 1.4) 4. Ligne de commande _________________ m2e [-v n ] [-o output] figure -v definit le niveau des messages affiches ; par defaut 1 si 0 : affiche seulement les erreurs si 1 : af- fiche les erreurs et les warning si 2 : affiche en plus les noms des fichiers .pin utilises si 3 : mode trace pour le debug 5. Variable d'environnement ________________________ M2E_PIN_LIB doit etre definie. Elle donne les chemins d'acces aux fichiers .pin
All times are GMT -4. The time now is 11:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy