Sponsored Content
Full Discussion: Invoking a program in a loop
Top Forums Shell Programming and Scripting Invoking a program in a loop Post 302475485 by ilikecows on Monday 29th of November 2010 01:53:33 AM
Old 11-29-2010
Why the backticks? I would get rid of them and see what happens.
 

10 More Discussions You Might Find Interesting

1. Programming

invoking an Unix script from a C Program

How to invoke an Unix Script from C program? (or) How to invoke another C program from a C program? thanks Karthik (5 Replies)
Discussion started by: fermisoft
5 Replies

2. UNIX for Dummies Questions & Answers

While loop program

I have a data file contain the following information: 1 2 3 4 5 10 11 30 90 300 9 29 and on and on I need to create a program with give me the following data format: Jon A (2 Replies)
Discussion started by: bobo
2 Replies

3. Shell Programming and Scripting

redirect variable to same program at next loop

Hi all, I don't know how to redirect a variable in this case: while true do ./ready_data ... done ready_data should read a file looking for an ID, if this doesn't exist then add the last ID seen into the first line. When ID exists there is no problem, but when ID doesn't... (0 Replies)
Discussion started by: csecnarf
0 Replies

4. Shell Programming and Scripting

program in loop.

eg: sample.dat 21111111110000652 B86860003OLFXXX0000001_20081227 21111111110000652 B86860003ODL-SP0000002_20081227 21111111110000652-B94030001ODL-CH0000003_20081227 22222222220000653-B94030001OLFXXX0000011_20081227 23333333330000654-E71060001OLFXXX0000012_20081227 24444444440000655... (5 Replies)
Discussion started by: kshuser
5 Replies

5. UNIX for Dummies Questions & Answers

invoking non-standard program in linux

I have a program R installed on Ubuntu under /usr/bin/R. I also have a different version installed under /home/user/R. I would like to invoke the locally installed program temporarily. How can I do this automatically by running a script and then switching to the default program? thanks, SM (2 Replies)
Discussion started by: smeme
2 Replies

6. Shell Programming and Scripting

Running binnary program in a loop

I am using a very simple script (MUS) to process some files where the input file for the binary application I am running has to be named infile. So I have this: #!/bin/bash for i in {1..n} do mv block${i} infile done ./dnadist <<EOF D Y EOF However, I want to use dnadist inside the... (3 Replies)
Discussion started by: Xterra
3 Replies

7. Shell Programming and Scripting

For loop to run external program

Hi, I was hoping for help with a for loop to run a program (vina) repeatedly using all the files in a folder as input. Currently my code looks like this: #!/bin/bash FILES=/home/afalk/Desktop/battest/*.pdbqt for f in $FILES do vina --config /home/afalk/Desktop/A.txt --ligand "$f".pdbqt done... (5 Replies)
Discussion started by: oldmanwinter
5 Replies

8. UNIX for Dummies Questions & Answers

Using Shell Script To Loop Program Through Multiple Text Files

Hello, So I have approximately 300 files of raw data (.txt) files that I am using to perform statistical analysis. I have been able to construct a Fortran program that is able to perform my statistical analysis on a file by file basis. However, I now want to be able to loop program through... (19 Replies)
Discussion started by: Jimmyd24
19 Replies

9. UNIX for Dummies Questions & Answers

Program output in terminal by invoking in cron

Hi, I have lost a lot of hours by looking for answer but without results.. My problem is that: I use Debian GNU/Linux and I want to configure cron in order to run rtorrent every day between 24.00 and 09.00. That part I have achieved, but I couldn't forced cron to make it visible on any of my... (10 Replies)
Discussion started by: juru_piotr
10 Replies

10. UNIX for Dummies Questions & Answers

invoking script

hi all, is there a way to run a script upon invoking an application . for eg if i click on mozilla i want a script to run , before runniing mozilla , maybe ask a password or something only then open mozilla (2 Replies)
Discussion started by: mithun1!
2 Replies
XSaveContext(3) 						  XLIB FUNCTIONS						   XSaveContext(3)

NAME
XSaveContext, XFindContext, XDeleteContext, XUniqueContext - associative look-up routines SYNTAX
int XSaveContext(Display *display, XID rid, XContext context, XPointer data); int XFindContext(Display *display, XID rid, XContext context, XPointer *data_return); int XDeleteContext(Display *display, XID rid, XContext context); XContext XUniqueContext(void); ARGUMENTS
context Specifies the context type to which the data belongs. data Specifies the data to be associated with the window and type. data_return Returns the data. display Specifies the connection to the X server. rid Specifies the resource ID with which the data is associated. DESCRIPTION
If an entry with the specified resource ID and type already exists, XSaveContext overrides it with the specified context. The XSaveContext function returns a nonzero error code if an error has occurred and zero otherwise. Possible errors are XCNOMEM (out of memory). Because it is a return value, the data is a pointer. The XFindContext function returns a nonzero error code if an error has occurred and zero otherwise. Possible errors are XCNOENT (context-not-found). The XDeleteContext function deletes the entry for the given resource ID and type from the data structure. This function returns the same error codes that XFindContext returns if called with the same arguments. XDeleteContext does not free the data whose address was saved. The XUniqueContext function creates a unique context type that may be used in subsequent calls to XSaveContext. SEE ALSO
Xlib - C Language X Interface X Version 11 libX11 1.5.0 XSaveContext(3)
All times are GMT -4. The time now is 12:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy