Sponsored Content
Top Forums Shell Programming and Scripting Restricted charecters in FTP password Post 302073595 by jim mcnamara on Tuesday 16th of May 2006 06:53:24 AM
Old 05-16-2006
How do you try to connect and fail: from inside a script or on the command line?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

stripping out certain charecters

we are ftping zipped up files from the development server to the production server daily.The files are in this format filename.dat.20061231.12131.gz I have to unzip the file (i can do that with gunzip) and then strip out the timestamp after the .dat extension. I can do something like this ... (4 Replies)
Discussion started by: mervin2006
4 Replies

2. Shell Programming and Scripting

ftp and user/password

I know the typical way to script automate an ftp session is to pass all of the commands to ftp, with something 'like' the following: echo USER $user echo PASS $pass My question concerns other methods or tricks people have used so that the username and ESPECIALLY the password are... (7 Replies)
Discussion started by: joeyg
7 Replies

3. UNIX for Advanced & Expert Users

removing frame charecters

Hi I have a requirement as follows. My Input file is as follows. COL1,COL2,COL3,COL4,COL5 987,2,3~7~5,400~468~598,0005~4687~5980 1111,2,2~7,400~468,0005~897 Expected OUTPUT ============ COL1,COL2,COL3,COL4,COL5 987,2,3,400,0005 987,2,7,468,4687 987,2,5,598,5980 1111,2,2,400,0005... (6 Replies)
Discussion started by: tkbharani
6 Replies

4. AIX

A user with restricted ftp access to a folder

Hi, We have Oracle Database on AIX 5.3 server.We want to give ftp access to a user to a specific folder.He should be able to put and get files from that specific folder only.Moreover he should not be able to cd to any other filesystems also along with root directory. Please note that as per... (1 Reply)
Discussion started by: dwiravi
1 Replies

5. AIX

Problem with Restricted FTP

I've created a specific FTP user restricted to only it's home dir. Eg as below: User: ftp01 Home Dir: /home/ftp01 As I want this user to only able to access his home dir only, I've created /etc/ftpaccess.ctl and refresh the inetd daemon: useronly: ftp01 readwrite: /home/ftp01 It... (1 Reply)
Discussion started by: shiniraz
1 Replies

6. UNIX for Dummies Questions & Answers

grep for special charecters

Hi, I need to grep for text between " 01/Aug" and " 02/Aug" in a text file. The awk command usually fails with the error saying "line too long" Is there other simpler ways to achieve this ? (12 Replies)
Discussion started by: shifahim
12 Replies

7. Shell Programming and Scripting

Removing special ^M charecters

Hi, This code works for me for file in $(find /path/to/dir -type f); do tr -d '\r' <$file >temp.$$ && mv temp.$$ $file done However, i want this code to skip all .class files. Can you help me with the modified code. (2 Replies)
Discussion started by: mohtashims
2 Replies

8. UNIX for Dummies Questions & Answers

Get ftp without password

Dear Masters, I usually run bash to get file from ftp using command below (user : nobody, password : guest) #!/bin/bash cd /xx/xy/prog FILE="list_country.xls" /usr/bin/ftp -in 1.2.116.12 << END user nobody guest ascii cd /XYZ/ABC binary get $FILE quit END But in this case,... (9 Replies)
Discussion started by: radius
9 Replies

9. Shell Programming and Scripting

Remove ^M charecters in all files

Hi, I wish to remove special charecters at the end of each line "^M" from all files under a folder and sub-folders. I do not seem to have dos2unix or Perl and my OS is Linux mymachine 2.6.32-431.5.1.el6.x86_64 #1 SMP Fri Jan 10 04:11:43 IST 2014 x86_64 x86_64 x86_64 GNU/Linux (8 Replies)
Discussion started by: mohtashims
8 Replies

10. Shell Programming and Scripting

Need to remove ^M charecters from all files

Hi, Below is my script where i wish to remove '^M' charecters from all files in the directory and sub-directories. Below code which is not able to remove all '^M' characters from all my files in all sub directories. find properties/* -type f -exec sh -c ' for file do tr -d '^M' < $file >... (3 Replies)
Discussion started by: mohtashims
3 Replies
CURLOPT_FTP_ALTERNATIVE_TO_USER(3)			     curl_easy_setopt options				CURLOPT_FTP_ALTERNATIVE_TO_USER(3)

NAME
CURLOPT_FTP_ALTERNATIVE_TO_USER - command to use instead of USER with FTP SYNOPSIS
#include <curl/curl.h> CURLcode curl_easy_setopt(CURL *handle, CURLOPT_FTP_ALTERNATIVE_TO_USER, char *cmd); DESCRIPTION
Pass a char * as parameter, pointing to a string which will be used to authenticate if the usual FTP "USER user" and "PASS password" nego- tiation fails. This is currently only known to be required when connecting to Tumbleweed's Secure Transport FTPS server using client cer- tificates for authentication. The application does not have to keep the string around after setting this option. DEFAULT
NULL PROTOCOLS
FTP EXAMPLE
TODO AVAILABILITY
Added in 7.15.5 RETURN VALUE
Returns CURLE_OK if the option is supported, CURLE_UNKNOWN_OPTION if not, or CURLE_OUT_OF_MEMORY if there was insufficient heap space. SEE ALSO
CURLOPT_FTP_SKIP_PASV_IP(3), CURLOPT_FTP_RESPONSE_TIMEOUT(3), libcurl 7.54.0 December 21, 2016 CURLOPT_FTP_ALTERNATIVE_TO_USER(3)
All times are GMT -4. The time now is 09:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy