Sponsored Content
Full Discussion: redirection stdin
Top Forums UNIX for Dummies Questions & Answers redirection stdin Post 302400598 by vgersh99 on Wednesday 3rd of March 2010 04:28:08 PM
Old 03-03-2010
Hello.

Per our forum rules, all posts must be in English.

We do provide translation services for posts from English to a number of languages as a benefit to users. However, posts must be in English.

Please repost in English.

Thank you for your cooperation.

The UNIX and Linux Forums.
 

10 More Discussions You Might Find Interesting

1. Programming

Changing stdin from file redirection to console input

Hi I am doing file redirection at console for use by my binary. %console%> bin &lt inputfile After reading in the entire file, I want my program to continue taking input from the console. So essentially I want to redirect stdin back to console. But I cant figure out how to do it. I am... (4 Replies)
Discussion started by: nauman
4 Replies

2. Programming

stdin

hi, how does a program know whether some data are available from stdin? I would like to make a program which could read its data from stdin and _if_there_is_nothing_at_stdin_ from a file which name is given as an argument. If there is nothing in stdin and no filename is given as argument,... (2 Replies)
Discussion started by: marquis
2 Replies

3. HP-UX

stdin device on HP

How can I access the standard-in device in HP-UX? I am trying to automate sftp on an HP-UX system. On solaris I can just do: sftp -b /dev/fd/0 remotehost <<EOF cd pub ascii get filename.txt bye EOF (2 Replies)
Discussion started by: dangral
2 Replies

4. Shell Programming and Scripting

redirection stdin

hello all, I need to create a password change utility for a database. I need to gather at the command line the username, password and database sid. I have the program currently doing this. What I would like to do is not have the new password appear on the screen when I do my read command.... (2 Replies)
Discussion started by: whited05
2 Replies

5. Shell Programming and Scripting

redirect STDIN

can you redirect STDIN with command arguments? I have tried this approach: # ./script -option <argument1> <argument2> 0<$2 # $2: ambiguous redirect Is this possible? (4 Replies)
Discussion started by: prkfriryce
4 Replies

6. Programming

How to write to stdin of another program (program A -> [stdin]program B)

Hi, Program A: uses pipe() I am able to read the stdout of PROGAM B (stdout got through system() command) into PROGRAM A using: * child -> dup2(fd, STDOUT_FILENO); -> execl("/path/PROGRAM B", "PROGRAM B", NULL); * parent -> char line; -> read(fd, line, 100); Question: ---------... (1 Reply)
Discussion started by: vvaidyan
1 Replies

7. UNIX for Dummies Questions & Answers

How to write to stdin of another program (program A -> [stdin]program B)

Hi, Program A: uses pipe() I am able to read the stdout of PROGAM B (stdout got through system() command) into PROGRAM A using: * child -> dup2(fd, STDOUT_FILENO); -> execl("/path/PROGRAM B", "PROGRAM B", NULL); * parent -> char line; -> read(fd, line, 100); Question: ---------... (3 Replies)
Discussion started by: vvaidyan
3 Replies

8. UNIX for Dummies Questions & Answers

fork and stdin

When a process fork(), the child share the same file descriptors as his father. Thus, they share the same stdin. Quick and dirty exemple below (sorry for the ugly gets() call) : #include <stdio.h> #include <unistd.h> int main() { char buf; if (fork()) { /*parent */ ... (1 Reply)
Discussion started by: milouz
1 Replies

9. Shell Programming and Scripting

Redirecting stdin from fd 3-9?

Hi I'm trying to do something on the bash command line that I will later put into a bash shell script. I'm trying to take a program that reads stdin (using getline) and be able to keep it running in the background and fire "commands" to it. So what I thought I should do was to try taking... (3 Replies)
Discussion started by: niceguyeddie
3 Replies

10. UNIX for Dummies Questions & Answers

stdin redirection

Hello, my C application under unix runs in redirecting stdin to a file. Example:$appli1 <file1. This application waits often on a scanf(). But I would temporarely reassign stdin at the keyboard for waiting a user's answer. So I thought to add system("appli2"); in the code of appli1. In its... (4 Replies)
Discussion started by: cypleen
4 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:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy