Hallo,
Ik probeer vanuit Debian met een ftp shell script meerdere tar.gz bestanden te uploaden via FTP.
Het eerste bestand word netjes geupload, echter blijft het bij dat ene bestand, en worden de andere niet geupload.
De bestanden zijn allen rond de 200 Mb.
Dit is het script wat ik nu gebruik, doe ik iets verkeerd?
Code:#!/bin/bash NOW=$(date +"%d-%m-%Y") HOST=xxxxxxxxxxxxxx #This is the FTP servers host or IP address. USER=xxxxxxxxxxxxxx #This is the FTP user that has access to the server. PASS=xxxxxxxxxxxxxx #This is the password for the FTP user. # Call 1. Uses the ftp command with the -inv switches. -i turns off interactive prompting.$ ftp -inv $HOST << EOF # Call 2. Here the login credentials are supplied by calling the variables. user $USER $PASS # Call 3. Here you will change to the directory where you want to put or get cd /data/dump # Call4. Here you will tell FTP to put or get the file. mkdir /folder/$NOW cd /folder/$NOW mput *.tar.gz

Likes:


Quote