Sponsored Content
Top Forums Shell Programming and Scripting Shell Script - If and smbclient (ftp)...help Post 302767029 by mcclunyboy on Wednesday 6th of February 2013 05:47:15 AM
Old 02-06-2013
Well now I know - I will simply move the final label to the right as it is likely less experienced people may need to review the scripts.

Thanks again
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

using ftp in a shell script.

I am trying to ftp some files from a certain directory, but i got an invalid command. does anybody know why i got this error? ftp -v -i -n <<SCRIPT open servername user username password cd /server/logs for file in MCWAS* do put ${file} /home/test/${file} done bye SCRIPT (2 Replies)
Discussion started by: caesarkim
2 Replies

2. Shell Programming and Scripting

ftp in shell script

Hi, I have to ftp to a remote machine. i have got the Ip, username and password and the file path.. I need to get the file name with out user intervention in my script.. is there any way to do this.. please help esham (2 Replies)
Discussion started by: esham
2 Replies

3. UNIX for Dummies Questions & Answers

Shell script for ftp

Hi ,, I am wrting a shell script to ftp a file from remote server but its giving some problem to me.can you help me in debugging this. #!/usr/bin/ksh HOST="some ip" user="user_name" passwd="password" ftp -n $HOST >>END_SCRIPT USER $user $passwd binary prompt get... (3 Replies)
Discussion started by: namishtiwari
3 Replies

4. Shell Programming and Scripting

FTP via shell script

Hi, I need to upload a file via ftp. I have given : ftp -n $HOST <<END quote user $USER quote pass $PASSWD prompt off put bus.txt quit END Its throwing a syntax error at "<<" symbol. What should be done for this ?? (2 Replies)
Discussion started by: risshanth
2 Replies

5. Shell Programming and Scripting

FTP using shell script

Hi All, I want to make a ftp call using a separate file where the ftp commands will reside. Please find below the details: I have 2 files Sample1.sh and Properties Properties --------- <username> <password> .... other ftp commands Sample1.sh ---------- ftp -v <servername> <... (1 Reply)
Discussion started by: pickpeters
1 Replies

6. Shell Programming and Scripting

Use ftp is a shell script

Hi, What i would like to do is to use a shell script connect to a remote computer and download files from a specific directory. I wrote the following script. #!/bin/sh HOST='IP' USER='yourid' PASSWD='yourpw' FILE='*.txt' REMOTEPATH=/incoming/MSC/ ftp $HOST <<END_SCRIPT user $USER... (3 Replies)
Discussion started by: chriss_58
3 Replies

7. UNIX for Dummies Questions & Answers

FTP shell script

Hi I am new in UNIX field. I don't know if I am posting in right forum or not. And I have also found out that there are so many posts about ftp shell scripting. I have tried those but actually having some problem. Well, my script should do the following..... It finds files( the filename ended... (3 Replies)
Discussion started by: abhishek_510
3 Replies

8. Shell Programming and Scripting

Help with Shell script for FTP

#!/usr/bin/ksh export filename=/grid/PowerCenter/inbound/AT/filelist.txt export SOURCE_DIR=/grid/PowerCenter/inbound/AT export ICOMS_FTP_TGT_DIR1=/dw/input/ATU/ICOM_SERV1 export ICOMS_FTP_TGT_DIR2=/dw/input/AT/ICOM_SERV2 export FILE_MASK="ATRPU_RP_ATU" echo "start" ftp_data_file() { ... (15 Replies)
Discussion started by: vsmeruga
15 Replies

9. UNIX for Dummies Questions & Answers

FTP in Shell Script

Dear All, I am using FTP in a script. But when i exit from the FTP session, the commands written after EOF don't get executed. i.e. ftp <<EOF quote $login quote $password cd /tmp mget *somefile* bye EOF echo $some_variable #This last echo command or whatever piece of commands i... (10 Replies)
Discussion started by: Salman786
10 Replies

10. Shell Programming and Scripting

Need a Shell Script for FTP

Hello Brothers, I am new in shell script.I need a shell script that will run in Linux Server. Script will connect to windows FTP server before connection script will check the connection from linux server to windows server, if connection is ok then show a message and get specific file and... (34 Replies)
Discussion started by: maruf
34 Replies
cdk_label(3)						     Library Functions Manual						      cdk_label(3)

NAME
cdk_label - Creates a managed curses label widget. SYNOPSIS
cc [ flag ... ] file ... -lcdk [ library ... ] #include <cdk.h> void activateCDKLabel ( CDKLABEL *label, chtype unused); void destroyCDKLabel ( CDKLABEL *label); void drawCDKLabel ( CDKLABEL *label, boolean box); void eraseCDKLabel ( CDKLABEL *label); boolean getCDKLabelBox ( CDKLABEL *label); chtype **getCDKLabelMessage ( CDKLABEL *label int *messageLines); void moveCDKLabel ( CDKLABEL *label, int xpos, int ypos, boolean relative, boolean refresh); CDKLABEL *newCDKLabel ( CDKSCREEN *cdkscreen, int xpos, int ypos, char **message, int messageLines, boolean box, boolean shadow); void positionCDKLabel ( CDKLABEL *label); void setCDKLabel ( CDKLABEL *label, char **message, int messageLines, boolean box); void setCDKLabelBackgroundAttrib ( CDKLABEL *label, chtype attribute); void setCDKLabelBackgroundColor ( CDKLABEL *label, char * color); void setCDKLabelBox ( CDKLABEL *label, boolean box); void setCDKLabelBoxAttribute ( CDKLABEL *label, chtype character); void setCDKLabelHorizontalChar ( CDKLABEL *label, chtype character); void setCDKLabelLLChar ( CDKLABEL *label, chtype character); void setCDKLabelLRChar ( CDKLABEL *label, chtype character); void setCDKLabelMessage ( CDKLABEL *label, char **message, int messageLines); void setCDKLabelULChar ( CDKLABEL *label, chtype character); void setCDKLabelURChar ( CDKLABEL *label, chtype character); void setCDKLabelVerticalChar ( CDKLABEL *label, chtype character); char waitCDKLabel ( CDKLABEL *label, char key); DESCRIPTION
The Cdk label widget creates a pop-up label window. The following functions create or manipulate the Cdk label widget. AVAILABLE FUNCTIONS
activateCDKLabel obsolete entrypoint which calls drawCDKLabel. destroyCDKLabel removes the widget from the screen and frees memory the object used. drawCDKLabel draws the label widget on the screen. If the box parameter is true, the widget is drawn with a box. eraseCDKLabel removes the widget from the screen. This does NOT destroy the widget. getCDKLabelBox returns true if the widget will be drawn with a box around it. getCDKLabelMessage returns the contents of the label widget. The parameter messageLines points to the location which will be given the number of mes- sage-lines. moveCDKLabel moves the given widget to the given position. The parameters xpos and ypos are the new position of the widget. The parameter xpos may be an integer or one of the pre-defined values TOP, BOTTOM, and CENTER. The parameter ypos may be an integer or one of the pre- defined values LEFT, RIGHT, and CENTER. The parameter relative states whether the xpos/ypos pair is a relative move or an absolute move. For example, if xpos = 1 and ypos = 2 and relative = TRUE, then the widget would move one row down and two columns right. If the value of relative was FALSE then the widget would move to the position (1,2). Do not use the values TOP, BOTTOM, LEFT, RIGHT, or CENTER when relative = TRUE. (weird things may happen). The final parameter refresh is a boolean value which states whether the wid- get will get refreshed after the move. newCDKLabel creates a label widget and returns a pointer to it. Parameters: screen is the screen you wish this widget to be placed in. xpos controls the placement of the object along the horizontal axis. It may be an integer or one of the pre-defined values LEFT, RIGHT, and CENTER. ypos controls the placement of the object along the vertical axis. It may be an integer or one of the pre-defined values TOP, BOTTOM, and CENTER. message is the message to be displayed in the window. It may contain any of the standard Cdk display format commands. To learn more about this see cdk_display (3). rows is the number of message rows that were passed in the message parameter. box is true if widget should be drawn with a box around it. shadow turns the shadow on or off around this widget. If the widget could not be created then a NULL pointer is returned. positionCDKLabel allows the user to move the widget around the screen via the cursor/keypad keys. See cdk_position (3) for key bindings. setCDKLabel allows the user to change the contents of the label widget. The parameters are the same as the newCDKLabel. setCDKLabelBackgroundAttrib sets the background attribute of the widget. The parameter attribute is a curses attribute, e.g., A_BOLD. setCDKLabelBackgroundColor sets the background color of the widget. The parameter color is in the format of the Cdk format strings. For more information see cdk_display (3). setCDKLabelBox sets whether the widget will be drawn with a box around it. setCDKLabelBoxAttribute sets the attribute of the box. setCDKLabelHorizontalChar sets the horizontal drawing character for the box to the given character. setCDKLabelLLChar sets the lower left hand corner of the widget's box to the given character. setCDKLabelLRChar sets the lower right hand corner of the widget's box to the given character. setCDKLabelMessage This sets the contents of the label widget. setCDKLabelULChar sets the upper left hand corner of the widget's box to the given character. setCDKLabelURChar sets the upper right hand corner of the widget's box to the given character. setCDKLabelVerticalChar sets the vertical drawing character for the box to the given character. waitCDKLabel waits for a user to press a key. The label parameter is the pointer to a label widget, and key is the key to wait for. If no spe- cific key is desired, use (char)0. SEE ALSO
cdk(3), cdk_binding(3), cdk_display(3), cdk_position(3), cdk_screen(3) cdk_label(3)
All times are GMT -4. The time now is 09:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy