Sponsored Content
Special Forums Windows & DOS: Issues & Discussions Script to ftp in to multiple ip addresses Post 302636867 by itkamaraj on Tuesday 8th of May 2012 05:00:29 AM
Old 05-08-2012
create a function for ftp action and call the fucntion with arguments
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script ftp multiple servers

Hi guys , i have 1 problem and no find what is the problem...:confused:, and .netrc is configured and correct permissions... REMOTE="/home/user" LISTADO=`cat /root/home/user/LISTADO.txt` MACHINE=$(echo $i|awk 'FS="|" {print $1}') for i in $LISTADO do ftp $MACHINE <<TER passive prompt... (2 Replies)
Discussion started by: Esquizo000
2 Replies

2. Shell Programming and Scripting

Automated FTP script using .netrc to multiple FTP servers

Hi all, I'm using the following script to automated ftp files to 1 ftp servers host=192.168.0.1 /usr/bin/ftp -vi >> $bkplog 2>&1 <<ftp open $host bin cd ${directory} put $files quit ftp and the .netrc file contain machine 192.168.0.1 login abc... (4 Replies)
Discussion started by: varu0612
4 Replies

3. Shell Programming and Scripting

bash, ssh and expect to multiple ip addresses

Hi, I need script that will allow me to connect to multiple clients using ssh on Ubuntu terminal... I have a txt file with the ip addresses of clients, i need a script that will connect to everyone one by one and send some commands... The idea is to check some settings on every client... (2 Replies)
Discussion started by: marko07
2 Replies

4. Shell Programming and Scripting

Echo - Sending mail to multiple addresses

Hi, If I want my script to send a mail to multiple recipients I can do the following: if then echo $err_string1 | mailx -s "UAT CPU ALERT" 1@email.com echo $err_string1 | mailx -s "UAT CPU ALERT" 2@email.com fi Can this also be done something like: ... (1 Reply)
Discussion started by: runnerpaul
1 Replies

5. UNIX for Advanced & Expert Users

Assigning multiple IPV6 addresses with ISC dhcpd

Hi, Apologies if this is the wrong forum or this question has been answered already. I'm using the ISC dhcpd server on Centos 6.0, and can happily assign a single IPV6 address to a client with entries like this: subnet6 fd01:0:0:5::/64 { option dhcp6.name-servers fd01:0:0:5::226;... (0 Replies)
Discussion started by: jusme
0 Replies

6. Red Hat

How to route multiple IP addresses with IPTABLE command?

Hi, We have a router and devices for testing. We route devices with below command iptables -t nat -A PREROUTING -p tcp -d 0/0 --dport 80 -s 10.111.111.22 -j DNAT --to-destination 10.13.0.16:3128 where 10.111.111.22 is device IP. and 10.13.0.16 is our Linux box machine. Likewise we... (4 Replies)
Discussion started by: Dhruvak
4 Replies

7. UNIX for Dummies Questions & Answers

Script to ftp in to multiple ip addresses

Hello Is there an easy way to login to various ip's..one after the other. I need to login to about 30 aix boxes and put a file in each one... Cheers (1 Reply)
Discussion started by: Grueben
1 Replies

8. Red Hat

Sendmail - Masquerading multiple domains with different addresses

Hello Friends, I am running Sendmail 8.14 on rhel6. I have one simple question regarding domain masquerading, i would want to masquerade different domains with different addresses. By that what i mean is that lets say i have 3 domains as home.com, example.com, test.com and i would want to... (0 Replies)
Discussion started by: Rohit Bhanot
0 Replies

9. UNIX for Dummies Questions & Answers

How to ping multiple ip addresses?

Hi, I have ip addresses from 192.168.0.1 to 192.168.0.10. I have to ping those series of IP address in single command? Which command i can use? (2 Replies)
Discussion started by: thomasraj87
2 Replies

10. Shell Programming and Scripting

FTP Script for Multiple Files of Same Name

Hello! I'm having a bit of trouble coming up with a script that can connect to 3 different log boxes and pull down files for that day into a single directory, where the files will all have the same name as per: stats_websites_20150801010000-20150801015959.csv.gz... (2 Replies)
Discussion started by: Cludgie
2 Replies
XtActionHookProc()														XtActionHookProc()

Name
  XtActionHookProc - interface definition for action hook procedure.

Synopsis
  typedef void (*XtActionHookProc)(Widget, XtPointer, String, XEvent*, String*, Cardinal*);
	 Widget w;
	 XtPointer client_data;
	 String action_name;
	 XEvent* event;
	 String* params;
	 Cardinal* num_params;

Inputs
  w	    Specifies the widget whose action is about to be dispatched.

  client_data
	    Specifies data that was registered with this procedure in a call to XtAppAddActionHook().

  action_name
	    Specifies the name of the action to be dispatched.

  event     Specifies the event argument that will be passed to the action routine.

  params    Specifies the action parameters that will be passed to the action routine.

  num_params
	    Specifies the number of elements in params.

Availability
  Release 4 and later.

Description
  An XtActionHookProc registered with XtAppAddActionHook() will be called just before any action procedure is invoked by the Translation Man-
  ager.  client_data is whatever data was registered with the action hook procedure in the call to XtAppAddActionHook().  action_name is  the
  name	of  the  action procedure that is about to be invoked.	It is the name the action procedure was registered with, and can be used in a
  call to XtCallActionProc().  The w, event, params, and num_params arguments are the arguments that will be passed directly  to  the  action
  procedure.

  Action hooks should not modify any of the data pointed to by the arguments other than the client_data argument.

Usage
  One  use of an XtActionHookProc is to record the arguments passed to each action so that user actions are recorded for later playback using
  XtCallActionProc().  This is one way to implement keyboard macros.

See Also
  XtAppAddActionHook(1), XtCallActionProc(1), XtRemoveActionHook(1),
  XtActionProc(2).

Xt - Translations and Actions													XtActionHookProc()
All times are GMT -4. The time now is 02:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy