06-16-2017
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Help!!!! Can Anyone out there help me? I need to write a script to automate a task to translate files. The files will be transfered through ftp to the workstation. Is there a way to check the file status whether the file has finished being transfered or still transfering. Or is there a way to... (3 Replies)
Discussion started by: sean76
3 Replies
2. Shell Programming and Scripting
Hi,
I've following code fragment as a part of 1 of my scripts.
Function is supposed to perform automated ftp to designated host.
Here are the details:-
#! /usr/bin/ksh
< some code>
perform_ftp()
{
#Assume that file to transfer is available in current directory
... (5 Replies)
Discussion started by: anijog
5 Replies
3. Shell Programming and Scripting
Hi,
I'm using the below script to ftp the file passed as 3rd argument. I'm passing the source and destination directory as 1st and 2nd argument. This script does the ftp successfully.
The script displays the echo before ftp stmt and does the ftp and does not display the stmts after that... (4 Replies)
Discussion started by: acheepi
4 Replies
4. Shell Programming and Scripting
Hi,
I wrote a script that is generating a file and then i have to ftp this file on another server. For this i am using mput to put the file.
How can i make sure that the file was ftp'd correctly to the another server, is there any status check ?
Thanks. (1 Reply)
Discussion started by: smc3
1 Replies
5. UNIX for Advanced & Expert Users
Hi,
We have some clients who will place huge files in to one of the remote server.
And the shell script written in our local server to retrieve client files (using FTP) placed on one of the remote server of ours by clients.
My question Is there any FTP command/script to check from my local... (1 Reply)
Discussion started by: nmsrao
1 Replies
6. Shell Programming and Scripting
To all,
I need to run a ftp command in one of my scripts and I need to evaluate what happens after it's done. The problem is the script would not capture the ftp responses. If I type the same thing on the command
line, I get all kinds of responses. I would like to capture the same responses in... (2 Replies)
Discussion started by: april
2 Replies
7. Shell Programming and Scripting
Hi Friends
I need to check the status of FTP connection i.e. Whether it is successful or not
I have tried this by assigning the FTP connection script to a variable and after that using this variable I tried to check the status.
In the below code snippet I am trying to assign the FTP... (1 Reply)
Discussion started by: Kannannair
1 Replies
8. Shell Programming and Scripting
I am using the below code to ftp file onto another server
FTP_LOG_FILE=${CURR_PRG_NAME}- ${FTP_FILE}-`date +%Y%m%d%H%M%S`.log
ftp -ivn ${FTP_HOST} ${FTP_PORT} << ENDFTP >> ${EDI_LOG_DIR}/${FTP_LOG_FILE} 2>&1
user ${FTP_USER} ${FTP_PSWD}
lcd... (2 Replies)
Discussion started by: akashdeepak
2 Replies
9. Shell Programming and Scripting
I am working on script. it reads a file which contains multiple lines
Ex;
curl --write-out %{http_code} --silent --output /dev/null http://hostname:port/input=1
curl --write-out %{http_code} --silent --output /dev/null http://hostname:port/input=2
curl --write-out %{http_code} --silent ... (2 Replies)
Discussion started by: oraclermanpt
2 Replies
10. UNIX for Beginners Questions & Answers
How to see the status of all the ftp put & get files logs and curent ftp transfer status if any active ftp running in the background ? (2 Replies)
Discussion started by: i4ismail
2 Replies
LEARN ABOUT SUSE
uri::heuristic
URI::Heuristic(3) User Contributed Perl Documentation URI::Heuristic(3)
NAME
URI::Heuristic - Expand URI using heuristics
SYNOPSIS
use URI::Heuristic qw(uf_uristr);
$u = uf_uristr("perl"); # http://www.perl.com
$u = uf_uristr("www.sol.no/sol"); # http://www.sol.no/sol
$u = uf_uristr("aas"); # http://www.aas.no
$u = uf_uristr("ftp.funet.fi"); # ftp://ftp.funet.fi
$u = uf_uristr("/etc/passwd"); # file:/etc/passwd
DESCRIPTION
This module provides functions that expand strings into real absolute URIs using some built-in heuristics. Strings that already represent
absolute URIs (i.e. that start with a "scheme:" part) are never modified and are returned unchanged. The main use of these functions is to
allow abbreviated URIs similar to what many web browsers allow for URIs typed in by the user.
The following functions are provided:
uf_uristr($str)
Tries to make the argument string into a proper absolute URI string. The "uf_" prefix stands for "User Friendly". Under MacOS, it
assumes that any string with a common URL scheme (http, ftp, etc.) is a URL rather than a local path. So don't name your volumes after
common URL schemes and expect uf_uristr() to construct valid file: URL's on those volumes for you, because it won't.
uf_uri($str)
Works the same way as uf_uristr() but returns a "URI" object.
ENVIRONMENT
If the hostname portion of a URI does not contain any dots, then certain qualified guesses are made. These guesses are governed by the
following environment variables:
COUNTRY The two-letter country code (ISO 3166) for your location. If the domain name of your host ends with two letters, then it is
taken to be the default country. See also Locale::Country.
HTTP_ACCEPT_LANGUAGE, LC_ALL, LANG
If COUNTRY is not set, these standard environment variables are examined and country (not language) information possibly found in
them is used as the default country.
URL_GUESS_PATTERN
Contains a space-separated list of URL patterns to try. The string "ACME" is for some reason used as a placeholder for the host
name in the URL provided. Example:
URL_GUESS_PATTERN="www.ACME.no www.ACME.se www.ACME.com"
export URL_GUESS_PATTERN
Specifying URL_GUESS_PATTERN disables any guessing rules based on country. An empty URL_GUESS_PATTERN disables any guessing that
involves host name lookups.
COPYRIGHT
Copyright 1997-1998, Gisle Aas
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.12.1 2010-03-14 URI::Heuristic(3)