Hello ,
I am trying to make a shell script (Unix) for a ftp connection to another server and to get a file.
So I have no knowledge about ftp and my script must do automaticly the connection with the user and passwd.
Can you help us about that...
Christian... (2 Replies)
Novice here...
I need help with excuting a shell script on a flat file that I've transfered over from a Windows XP machine for manipulation through an auto FTP script...
so that after it is transfers it excutes the shell script and then returns it back to XP machine...
Any ideas... (2 Replies)
I have my ftp script as below..
This is logging the messages into ftp.log file ,
But I want the same output(what ever messages are going into ftp.log) to be printed on the console too for the user to show the status.. Tried with "tee" .. unable to get the solution..
Can some one help me... (3 Replies)
Hello,
A couple of times per week, i receive emails notifications when files are available for processing.
Currently i read these eamails with a java program and store the attachement on my C: drive and would now like to generate a PC script to send this file name up to UNIX-Solaris and... (3 Replies)
I have the following ftp script to get files from a remote location.
However, on running the script I find that I am not even able to connect to ftp server.
I am able to connect to ftp server using other GUI ftp tools like WS_FTP using the same IP.
IP used here is a dummy IP.
What can go... (3 Replies)
Hi,
I have a ftp script which first gets all the file names and echo's the latest file.
I'm using another ftp command sets to get the file name given by first ftp. The problem is the parameter is not accepted by second ftp. The error message i'm getting is
> Rename Temp File calloc:ICMP... (5 Replies)
Hi all,
I'm using the following script to automated ftp files to 1 ftp servers
host=192.168.0.1
/usr/bin/ftp -vi >> $bkplog 2>&1 <<ftp
open $host
bin
cd ${directory}
put $files
quit
ftp
and the .netrc file contain
machine 192.168.0.1
login abc... (4 Replies)
hello ,
I am working on a FTP script which navigates to specific directory and pulls the file
Issue which i am facing ::
----------------------------
i) When there is a file it pulls the file , but when there is not file in the directory it fails in the same statement and it is not... (3 Replies)
Hi,
I am new to shell scripting,and i was planning to write a script that will FTP files to destination folder.
I was planning that All configuration should be done through a properties files. and finally the output should be
Files are transferred
I have developed a properties file named... (4 Replies)
Discussion started by: rahul125
4 Replies
LEARN ABOUT REDHAT
readdir
READDIR(3) Linux Programmer's Manual READDIR(3)NAME
readdir - read a directory
SYNOPSIS
#include <sys/types.h>
#include <dirent.h>
struct dirent *readdir(DIR *dir);
DESCRIPTION
The readdir() function returns a pointer to a dirent structure representing the next directory entry in the directory stream pointed to by
dir. It returns NULL on reaching the end-of-file or if an error occurred.
According to POSIX, the dirent structure contains a field char d_name[] of unspecified size, with at most NAME_MAX characters preceding the
terminating null character. Use of other fields will harm the portability of your programs. POSIX-2001 also documents the field ino_t
d_ino as an XSI extension.
The data returned by readdir() may be overwritten by subsequent calls to readdir() for the same directory stream.
RETURN VALUE
The readdir() function returns a pointer to a dirent structure, or NULL if an error occurs or end-of-file is reached.
ERRORS
EBADF Invalid directory stream descriptor dir.
CONFORMING TO
SVID 3, POSIX, BSD 4.3
SEE ALSO read(2), closedir(3), dirfd(3), opendir(3), rewinddir(3), scandir(3), seekdir(3), telldir(3)
1996-04-22 READDIR(3)