![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Reading variable from file variable values | sagii | Shell Programming and Scripting | 5 | 06-27-2009 01:06 PM |
| Insert a line including Variable & Carriage Return / sed command as Variable | lowmaster | Shell Programming and Scripting | 2 | 05-19-2009 11:26 PM |
| Sed variable substitution when variable constructed of a directory path | alrinno | Shell Programming and Scripting | 2 | 07-11-2008 02:24 PM |
| Enviornment Variable in B shell (I call it nested variable) | princelinux | Shell Programming and Scripting | 4 | 07-02-2008 01:35 AM |
| Comando para montar automaticamente un Dlt | Kespinoza97 | HP-UX | 1 | 12-07-2005 10:24 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
salida de comando a variable
Buenas, estoy intentando hacer lo siguiente:
Enviar un comando at a un telefono movil y recibir la respuesta para tratarla. Algo estaré haciendo mal que usando open, write y read, solo consigo enviarle el comando pero no capturar la respuesta, solo aparece en pantalla por el terminal. Asi que he optado por lo siguiente: //direccionar lo que aparece en pantalla a un .txt system("cu -l /dev/ttyACM0 -s 9600 > log.txt"); y luego con el programa ir escribiendo los comandos y leyendo el txt para ver la respuesta del movil. (que me imagino que asi será mucho mas lento) Mi pregunta es si puedo enviar la salida a una variable de un programa en vez de al txt. he probado con pipes pero no se enlazarlas directamente el puerto. Muchas gracias |
|
|||||
|
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. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|