Sponsored Content
Top Forums Programming C program help please! input from pipeline Post 20503 by manish on Sunday 28th of April 2002 02:33:11 AM
Old 04-28-2002
Suggestion: Read any good C or UNIX programming book and read about "standard input".
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to run this program with only one input file at a time

i have a program ABC, which runs every two minutes and takes the input according to the a value called "pointer" files need to be processed by ABC are input0001 input0002 input0003 input0004 input0005 current value of pointer is 0001, now program runs and takes all the files from... (2 Replies)
Discussion started by: Prat007
2 Replies

2. Shell Programming and Scripting

Can process substitution be used as an input file to another program?

Hey, I was trying to figure out how to launch a program from the command line, and it works if you pass it a config file. I was thinking about writing a script to dynamically create the config file and pass it to the command using something like command substitution (so I don't actually have to... (3 Replies)
Discussion started by: bj0
3 Replies

3. Shell Programming and Scripting

Launching a C program that needs input from a shell script

hi there, i need some help, i am trying to run a script to launch a C program and a Java program but before running both I want to get a user input and then invoke both programs with input received. In the programs the inputs are not command line arguments. This is the code, after the java... (4 Replies)
Discussion started by: momal
4 Replies

4. Shell Programming and Scripting

input stored procedure to shell program

Hello, I have to call the stored procedure as argument from the unix shell program. Looks like unix doesnt like, can someone comment pls USERID=scott PASSWD=xxxxxx PLSQLCALL=$2 STDT=`sqlplus /nolog <<END >> $LOGFILE conn ${USERID}/${PASSWD}@${ORACLE_SID} whenever sqlerror exit failure... (9 Replies)
Discussion started by: tvanoop
9 Replies

5. Shell Programming and Scripting

Shell variable to c++ program as input

I have an Shell script which has few global variables eg : range=100; echo "$range" I want to use the same variable in my C++ program for example int main() { cout << range << "\n"; } i tried using this int main(int argc, char *argv) { cout << range << "\n"; } but... (5 Replies)
Discussion started by: shashi792
5 Replies

6. UNIX for Dummies Questions & Answers

how to pass input from c program to shell script?

Hello.. I am developing a Graphical User Interface using GTK. As part of our project I need to take inputs from GTK entries and pass those inputs to shell script and use them in shell script. The problem which struck me is only limited number of inputs are getting passed to shell script. For now... (14 Replies)
Discussion started by: kalyanilinux
14 Replies

7. Shell Programming and Scripting

Input keyboard keys upon program launch

Hey guys, first post! I want to write a script that will wait 1 second and then input the keys CTRL+ALT+J to the application i just opened. The program is dosbox, and thay key combination starts video recording :) I have no idea how to program this, can anyone help please? thanks in advance! (2 Replies)
Discussion started by: brunobliss
2 Replies

8. Shell Programming and Scripting

Write a shell program with input

Hi, Here is my question: I want a shell script which I name as 'del', and can be used as del(string). when run del(string), it will delete several directories at different locations in my system,like: rm -fr /lustre/fs/scratch/user/$string rm -fr /home/user/$string rm -fr... (4 Replies)
Discussion started by: 1988PF
4 Replies

9. Shell Programming and Scripting

Seeing input that you redirect to a program on the shell

Suppose I have a program that I've written that accepts input, ie this C++ program: #include <iostream> using namespace std; int main() { cout << "Enter something:" << endl; int x; cin >> x; cout << "You entered data" << endl; } Suppose that I have a text file,... (5 Replies)
Discussion started by: Chris J
5 Replies

10. Shell Programming and Scripting

Getting piped input from a program that's buffering it's stdout

The old buffering problem again, in a very specific case. On FreeBSD this time, but it's the generic line-buffered vs fully-buffered problem. I'm trying to pick an available bluetooth speaker (all named audio_N), by pinging all of them en mass and taking the first to respond. The... (10 Replies)
Discussion started by: Juha Nurmela
10 Replies
GOSMORE(1)						      General Commands Manual							GOSMORE(1)

NAME
gosmore - Viewer for OpenStreetMap data, with routing and searching SYNONPSIS
gosmore [rebuild [minlatitude minlongitude maxlat maxlong] QUERY_STRING="flat=...&flon=...&tlat=...&tlon=...&fast=[01]&v=..." gosmore DESCRIPTION
gosmore is a GTK+ application for viewing OpenStreetMap data. It can calculate the fastest route between two points. It can also has incre- mental search capability and the results are ordered by distance from the current viewpoint. See the wiki page for details on two pass bounding box rebuilding. Note that the binary file format is not yet stable and rebuilding is recommended after upgrading. FILES
/usr/share/gosmore/elemstyles.xml ~/.gosmore/elemstyles.xml This file determines how each OSM element is rendered and how it affects routing. A list of valid icons cans be found in /usr/share/gosmore/icons.csv gosmore.pak The binary data created during rebuild ENVIRONMENT
QUERY_STRING If this variable is set, gosmore will try to compute the specified route, output the result and then exit (ie. headless query). EXAMPLE
wget http://download.cloudmade.com/europe/denmark/denmark.osm.bz2 bzcat denmark.osm.bz2 | gosmore rebuild gosmore SEE ALSO
JOSM, gpds nav-it http://wiki.openstreetmap.org/wiki/Gosmore AUTHOR
Nic Roets <nroets@gmail.com> with contributions from David Dean and many others. 27 June 2009 GOSMORE(1)
All times are GMT -4. The time now is 07:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy