Sponsored Content
Top Forums Shell Programming and Scripting Need to automate sftp and always get the latest file Post 302924945 by rbatte1 on Thursday 13th of November 2014 07:04:40 AM
Old 11-13-2014
Hello Jonny

So can you follow the logic for each of the steps and get a working solution? If the approach is acceptable, let us know how far you are getting on each step and what you have tried. It's easier to work with your code so we can suggest adjustments in a way that you will understand and be able to support for your future. It will also show us what tools you favour so we can meet that too.


Regards,
Robin
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Automate SFTP is not working

Hi All:cool:, i tried to automate SFTP process after passwordless authendication. Stil i am getting error... Can anyone help.... ------------------- sample code below ------------------- sftp -v $mdskk@100.4.4.75 << EOF cd /data mget *.tar.gz bye EOF... (2 Replies)
Discussion started by: senthil_seera
2 Replies

2. Shell Programming and Scripting

automate sftp using unix script

Hi All, I need to write a UNIX script that automates the sftp process. I should be able to do a sftp to a secure box and get a file from there. I am having a problem doing this because no matter what I do, when I run my script, I get a prompt at command line asking for a password. How could I... (34 Replies)
Discussion started by: priyamurthy2005
34 Replies

3. AIX

Automate SFTP UNIX to Windows

Hi, Could you please help to solve the below issue... my requirement is automate the SFTP between UNIX and Windows server. I want to get and put some files to UNIX AIX machine(SFTP client) to Windows server(SFTP server). For that, i have generated key pair (private/public) in my AIX machine .... (6 Replies)
Discussion started by: mahiban
6 Replies

4. Shell Programming and Scripting

Latest file through SFTP

Hi, I want to download the latest file published on remote server using SFTP connection. The job will run at every 15 min hence should download only the latest file. The fileName will be like ABC_DDHHMISS.txt (DD- day, HH-hour, MI - Min, SS-Sec). So there will be files with same date for... (23 Replies)
Discussion started by: ssachins
23 Replies

5. Shell Programming and Scripting

SFTP latest file from Windows server to Unix host

Hi All, I am SFTP ing file from Windows server (Sydney) to Unix host in London (both servers are on different timezones). It appears the upstream (Windows server team) does not do a file housekeeping activity and henceforth there are multiple files i.e. each week the script is scheduled to run... (1 Reply)
Discussion started by: vigdmab
1 Replies

6. Shell Programming and Scripting

Need to copy latest file using SFTP

Hi All, In my unix server, I have the following files: h1.txt h2.txt h3.txt and through SFTP i need to copy only the latest file to another unix server. Can you please let me know what command i need to use. Thanks in Advance, (2 Replies)
Discussion started by: HemaV
2 Replies

7. Shell Programming and Scripting

Using expect to automate sftp

I am trying to use a for loop in my expect cmdFile that I am calling. I want to be able to call either one file name or a series of file names in the working directory (that I won't know the names before hand) and then pass the names to the sftp program. Something like for i in (ls *txt) do (0 Replies)
Discussion started by: vedder191
0 Replies

8. UNIX for Dummies Questions & Answers

Find the latest file on remote sftp

Hi All, I need your help in finding the latest files in remote sftp and get those files to local server and process them. Please let me know I appreciate your valuable inputs. Thanks raj (7 Replies)
Discussion started by: rajeevm
7 Replies

9. Shell Programming and Scripting

Sftp automate

hi, I am trying to automate a file download process using sftp. There is some logic to download files. 1) I need to login to destination server and then go to folder. 2) find list of files and count 3) using list of files I need to eliminate three selective files and download remaining... (1 Reply)
Discussion started by: getmilo
1 Replies

10. UNIX for Beginners Questions & Answers

Retrieve the Latest file in a folder using SFTP

HI Guys, Can anyone help me to retrieve the latest file from below example using SFTP I have below list of files in a folder v403t.lstprgms.sortin1 val027.d099.fwest.oct2711 xcelrptd.d1400sqp.dec1713.t040459.@02del xcelrptd.d1400sqp.dec1713.t073308.@02del... (3 Replies)
Discussion started by: heye18
3 Replies
iwidgets::feedback(1)						  [incr Widgets]					     iwidgets::feedback(1)

__________________________________________________________________________________________________________________________________________________

NAME
iwidgets::feedback - Create and manipulate a feedback widget to display feedback on the current status of an ongoing operation to the user. SYNOPSIS
iwidgets::feedback pathName ?options? INHERITANCE
itk::Widget <- iwidgets::Labeledwidget <- iwidgets::Feedback STANDARD OPTIONS
background cursor foreground highlightColor highlightThickness See the "options" manual entry for details on the standard options. INHERITED OPTIONS
labelBitmap labelFont labelImage labelMargin labelPos labelText labelVariable sticky See the "labeledwidget" class manual entry for details on the inherited options. WIDGET-SPECIFIC OPTIONS Name: barcolor Class: BarColor Command-Line Switch: -barcolor Specifies the color of the status bar, in any of the forms acceptable to Tk_GetColor. The default is DodgerBlue. Name: barheight Class: BarHeight Command-Line Switch: -barheight Specifies the height of the status bar, in any of the forms acceptable to Tk_GetPixels. The default is 20. Name: troughColor Class: TroughColor Command-Line Switch: -troughcolor Specifies the color of the frame in which the status bar sits, in any of the forms acceptable to Tk_GetColor. The default is white. Name: steps Class: Steps Command-Line Switch: -steps Specifies the total number of steps for the status bar. The default is 10. DESCRIPTION
The iwidgets::feedback command creates a widget to display feedback on the current status of an ongoing operation to the user. Display is given as a percentage and as a thermometer type bar. Options exist for adding a label and controlling its position. METHODS
The iwidgets::feedback command creates a new Tcl command whose name is pathName. This command may be used to invoke various operations on the widget. It has the following general form: pathName option ?arg arg ...? Option and the args determine the exact behavior of the com- mand. The following commands are possible for scrolledtext widgets: WIDGET-SPECIFIC METHODS pathName cget option Returns the current value of the configuration option given by option. Option may have any of the values accepted by the scrolled- html command. pathName configure ?option? ?value option value ...? Query or modify the configuration options of the widget. If no option is specified, returns a list describing all of the available options for pathName (see Tk_ConfigureInfo for information on the format of this list). If option is specified with no value, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if no option is specified). If one or more option-value pairs are specified, then the command modifies the given widget option(s) to have the given value(s); in this case the command returns an empty string. Option may have any of the values accepted by the iwidgets::feedback command. pathName reset Reset the current number of steps completed to 0, and configures the percentage complete label text to 0% pathName step ?inc? Increase the current number of steps completed by the amount specified by inc. Inc defaults to 1. EXAMPLE
package require Iwidgets 4.0 iwidgets::feedback .fb -labeltext "Status" -steps 20 pack .fb -padx 10 -pady 10 -fill both -expand yes for {set i 0} {$i < 20} {incr i} { .fb step after 500 } ACKNOWLEDGEMENTS
Sam Shen This code is based largely on his feedback.tcl code from tk inspect. The original feedback code is copyright 1995 Lawrence Berkeley Laboratory. AUTHOR
Kris Raney KEYWORDS
feedback, widget Tk iwidgets::feedback(1)
All times are GMT -4. The time now is 02:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy