11-10-2009
Hi,
You can just give hash before using put command and till the transfer is not complete the hash symbol will keep on incrementing.
Cheers
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
When performing an FTP, does anyone know how to return the commands (i.e. 250) to see if it was successful?
ftp -n XXX.XXX.XXX.XXX <<- eof
User Pswd
cd xxx/xxxx/xxx
bin
mput *
quit
eof
Thanks (1 Reply)
Discussion started by: rvprod
1 Replies
2. Shell Programming and Scripting
I am trying to perform some error handing within a Korn sheel script whilst FTPing a file from one server to another..
The exit status is correctly set to zero, if my script connects to the other server and sends the file..
However, if for whatever reason other than a timeout the script... (3 Replies)
Discussion started by: frustrated1
3 Replies
3. UNIX for Advanced & Expert Users
Hi All,
I am facing a while i use mput to the server.
Actually i have data on client machine which is windows XP. The data is near to 1GB. I have zipped the data.
I can ftp and connect to Server(Which has Fedora 4 running).
but when i do mput *.zip it gives an error.
I tried to put in a... (2 Replies)
Discussion started by: prakash.kudreka
2 Replies
4. Shell Programming and Scripting
hi,
I have one file located in ftp.I want to place that file in different ftp location.
Up to now i am doing it manually using get command and copying that file in to my local system and then putting that file in different ftp using put command.
now i want to automate that using shell... (1 Reply)
Discussion started by: prasee
1 Replies
5. HP-UX
Hi gurus,
I have a problem with ftp access. The first 2 test e.g. Test A & Test B was successful with the file size 64kb (800++ numbers). The third test with file size 120kb was failed. The error is "Netout :Connection reset by peer". No password entered manually since the test run from the... (3 Replies)
Discussion started by: yeazas
3 Replies
6. Shell Programming and Scripting
Hi All,
I'm trying to get this to work but when I execute it I get the following error
./ftp_upload.sh: line 78: syntax error: unexpected end of file.
This was working before I expanded the script and had the here document part directly below within a function.
Can anyone spot what I've... (5 Replies)
Discussion started by: darrenm
5 Replies
7. UNIX for Dummies Questions & Answers
Hello,I am trying to put something on the ftp server using the put command. Whenever I try, I get this error:
ftp> put SIMS.war
local: SIMS.war remote: SIMS.war
200 PORT command successful
553 Can't open that file: Permission denied
I have set rwx for all on that file and I still am... (3 Replies)
Discussion started by: mojoman
3 Replies
8. Shell Programming and Scripting
Hi All,
I have developed below script for FTP a file from unix machine to another machine.
ftpToABC ()
{
USER='xyz'
PASSWD='abc'
echo "open xx.yy.zbx.aaa
user $USER $PASSWD
binary
echo "put $1 abc.txt" >> /home/tmp/ftp.$$
echo "quit" >> /home/tmp/ftp.$$
ftp -ivn <... (3 Replies)
Discussion started by: RSC1985
3 Replies
9. Shell Programming and Scripting
Hi all ,
i have a script which cp xml files from linux to other server thru ftp
my xml file contains charcters in hebrew . my script is
#!/bin/bash
HOST="....."
USER="....."
PASSWORD="..."
cd /usr2/app/naama/
filelist='find . -mmin -60 | tail -n +2 | awk -F "/" '{print $2}' | grep xml'... (3 Replies)
Discussion started by: naamas03
3 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 DEBIAN
hash32_str
HASH(9) BSD Kernel Developer's Manual HASH(9)
NAME
hash, hash32, hash32_buf, hash32_str, hash32_strn, hash32_stre, hash32_strne -- general kernel hashing functions
SYNOPSIS
#include <sys/hash.h>
uint32_t
hash32_buf(const void *buf, size_t len, uint32_t hash);
uint32_t
hash32_str(const void *buf, uint32_t hash);
uint32_t
hash32_strn(const void *buf, size_t len, uint32_t hash);
uint32_t
hash32_stre(const void *buf, int end, const char **ep, uint32_t hash);
uint32_t
hash32_strne(const void *buf, size_t len, int end, const char **ep, uint32_t hash);
DESCRIPTION
The hash32() functions are used to give a consistent and general interface to a decent hashing algorithm within the kernel. These functions
can be used to hash ASCII NUL terminated strings, as well as blocks of memory.
The hash32_buf() function is used as a general buffer hashing function. The argument buf is used to pass in the location, and len is the
length of the buffer. The argument hash is used to extend an existing hash, or is passed the initial value HASHINIT to start a new hash.
The hash32_str() function is used to hash a NUL terminated string passed in buf with initial hash value given in hash.
The hash32_strn() function is like the hash32_str() function, except it also takes a len argument, which is the maximal length of the
expected string.
The hash32_stre() and hash32_strne() functions are helper functions used by the kernel to hash pathname components. These functions have the
additional termination condition of terminating when they find a character given by end in the string to be hashed. If the argument ep is
not NULL, it is set to the point in the buffer at which the hash function terminated hashing.
RETURN VALUES
The hash32() functions return a 32 bit hash value of the buffer or string.
EXAMPLES
LIST_HEAD(head, cache) *hashtbl = NULL;
u_long mask = 0;
void
sample_init(void)
{
hashtbl = hashinit(numwanted, type, flags, &mask);
}
void
sample_use(char *str, int len)
{
uint32_t hash;
hash = hash32_str(str, HASHINIT);
hash = hash32_buf(&len, sizeof(len), hash);
hashtbl[hash & mask] = len;
}
SEE ALSO
free(9), hashinit(9), malloc(9)
LIMITATIONS
The hash32() functions are only 32 bit functions. They will prove to give poor 64 bit performance, especially for the top 32 bits. At the
current time, this is not seen as a great limitation, as these hash values are usually used to index into an array. Should these hash values
be used for other means, this limitation should be revisited.
HISTORY
The hash functions were first committed to NetBSD 1.6. The OpenBSD versions were written and massaged for OpenBSD 2.3 by Tobias Weingartner,
and finally committed for OpenBSD 3.2.
BSD
April 3, 2007 BSD