Sponsored Content
Full Discussion: For looping on FTP
Top Forums UNIX for Advanced & Expert Users For looping on FTP Post 302593050 by Corona688 on Wednesday 25th of January 2012 12:38:14 PM
Old 01-25-2012
What do you mean, "finds the first file"?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Help with looping

Hi, Actually I have a file which consists data . for eg names. Then I want my sql query to read this file and produce the output. Currently I am using this FOR EG : FILENAME is NAMES for i in `cat NAMES` { sqlplus -s $CONNECTID << EOF spool rooh set heading off select... (1 Reply)
Discussion started by: rooh
1 Replies

2. Shell Programming and Scripting

looping

Hi I have around 100 users in sun server and have default home directory in /usr/home/<username> I want to clean their home directory time to time to make free space on root, as users generate many output files during usage of application. My idea is, generate a file with following command... (4 Replies)
Discussion started by: ishir
4 Replies

3. Shell Programming and Scripting

for looping

I run into a issue when I try to do sorting of the following with ascending order, one round of for looping seems not working, anyone knows how to use shell or perl? $array = (5,0,3,2,7,9,8) (2 Replies)
Discussion started by: ccp
2 Replies

4. Shell Programming and Scripting

help on looping using if/for or while

Hello, where can I get usefull information on the use of looping with for , if and while with extensive examples. Also use of variables in scripts (1 Reply)
Discussion started by: sam4now
1 Replies

5. Shell Programming and Scripting

help with looping

vesselNames values: xxx yyy zzz vesselPlanned values: xxx zzz zzz zzz OIFS="" OIFS=$IFS IFS="\n" (2 Replies)
Discussion started by: finalight
2 Replies

6. Shell Programming and Scripting

Looping

Hi, Now I have written a script which sorts the records in the file and splits them according to some condition. Now, I need to modify the script so that it reads all the files one after the other and does the sorting & splitting. Pls help me in reading all the files in a directory and... (8 Replies)
Discussion started by: Sunitha_edi82
8 Replies

7. Shell Programming and Scripting

Looping in FTP session

Hi I am trying rename multiple files in a remote location by connecting through FTP. How do i do this? I get error as for is not FTP command. I looked the FAQ for scripting but it is doesnt relate to my post. Please help. Thanks ftp -in >Error.log <<! open $HOST user $User $Pwd for... (2 Replies)
Discussion started by: appsguy616
2 Replies

8. Shell Programming and Scripting

Looping

Hi evryone i need a help . i have a file xcv.the content is : accelerate i want a script which will run 1000 times in loop and changing the value to accelerate to acceler in 1st loop and in 2nd loop it will be again accelerate and so on . (6 Replies)
Discussion started by: Aditya.Gurgaon
6 Replies

9. Shell Programming and Scripting

Odd looping issue with NET::FTP and Proftpd

Hello, I'm a UNIX SysAdmin at a large webhosting company and we have a vendor that provides a service which involves the ftp'ing of files from their servers to ours. They initiate FTP using a perl script with NET::FTP. When they try to transfer files (and delete files over ftp), there is... (3 Replies)
Discussion started by: tmmgeekette
3 Replies

10. Shell Programming and Scripting

Looping

Hey guys, so I am trying to do a loop script that will go through each folder (no gui so just each domain has a folder) and grab out the databases being used on that domain. I know I would use mysql -e "show databases where not 'information_schema';" once in each directory to pull the actual... (3 Replies)
Discussion started by: dough
3 Replies
XNextEvent(3X11)						     MIT X11R4							  XNextEvent(3X11)

Name
       XNextEvent, XPeekEvent, XWindowEvent, XCheckWindowEvent, XMaskEvent, XCheckMaskEvent, XCheckTypedEvent, XCheckTypedWindowEvent - select
       events by type

Syntax
       XNextEvent(display, event_return)
	  Display *display;
	  XEvent *event_return;

       XPeekEvent(display, event_return)
	  Display *display;
	  XEvent *event_return;

       XWindowEvent(display, w, event_mask, event_return)
	  Display *display;
	  Window w;
	  long event_mask;
	  XEvent *event_return;

       Bool XCheckWindowEvent(display, w, event_mask, event_return)
	  Display *display;
	  Window w;
	  long event_mask;
	  XEvent *event_return;

       XMaskEvent(display, event_mask, event_return)
	  Display *display;
	  long event_mask;
	  XEvent *event_return;

       Bool XCheckMaskEvent(display, event_mask, event_return)
	  Display *display;
	  long event_mask;
	  XEvent *event_return;

       Bool XCheckTypedEvent(display, event_type, event_return)
	  Display *display;
	  int event_type;
	  XEvent *event_return;

       Bool XCheckTypedWindowEvent(display, w, event_type, event_return)
	  Display *display;
	  Window w;
	  int event_type;
	  XEvent *event_return;

Arguments
       display	 Specifies the connection to the X server.

       event_mask
		 Specifies the event mask.

       event_return
		 Returns the matched event's associated structure.

       event_return
		 Returns the next event in the queue.

       event_return
		 Returns a copy of the matched event's associated structure.

       event_type
		 Specifies the event type to be compared.

       w	 Specifies the window whose event you are interested in.

Description
       The function copies the first event from the event queue into the specified structure and then removes it from the queue.  If the event
       queue is empty, flushes the output buffer and blocks until an event is received.

       The function returns the first event from the event queue, but it does not remove the event from the queue.  If the queue is empty, flushes
       the output buffer and blocks until an event is received.  It then copies the event into the client-supplied structure without removing it
       from the event queue.

       The function searches the event queue for an event that matches both the specified window and event mask.  When it finds a match, removes
       that event from the queue and copies it into the specified structure.  The other events stored in the queue are not discarded.  If a match-
       ing event is not in the queue, flushes the output buffer and blocks until one is received.

       The function searches the event queue and then the events available on the server connection for the first event that matches the specified
       window and event mask.  If it finds a match, removes that event, copies it into the specified structure, and returns The other events
       stored in the queue are not discarded.  If the event you requested is not available, returns and the output buffer will have been flushed.

       The function searches the event queue for the events associated with the specified mask.  When it finds a match, removes that event and
       copies it into the specified structure.	The other events stored in the queue are not discarded.  If the event you requested is not in the
       queue, flushes the output buffer and blocks until one is received.

       The function searches the event queue and then any events available on the server connection for the first event that matches the specified
       mask.  If it finds a match, removes that event, copies it into the specified structure, and returns The other events stored in the queue
       are not discarded.  If the event you requested is not available, returns and the output buffer will have been flushed.

       The function searches the event queue and then any events available on the server connection for the first event that matches the specified
       type.  If it finds a match, removes that event, copies it into the specified structure, and returns The other events in the queue are not
       discarded.  If the event is not available, returns and the output buffer will have been flushed.

       The function searches the event queue and then any events available on the server connection for the first event that matches the specified
       type and window.  If it finds a match, removes the event from the queue, copies it into the specified structure, and returns The other
       events in the queue are not discarded.  If the event is not available, returns and the output buffer will have been flushed.

See Also
       XAnyEvent(3X11), XIfEvent(3X11), XPutBackEvent(3X11), XSendEvent(3X11)
       X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys

																  XNextEvent(3X11)
All times are GMT -4. The time now is 05:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy