quote it. I'm not 100% sure the FTP part will work.
hi corona668
may be i am wrong but why do you think the FTP part wont work??
actually i am using the similar way for doing FTP to remote servers and it works fine. one drawback is that you will have to pass your password to the ftp in this way. if you do not want to hard code your username and password in the script, try using .netrc file.
---------- Post updated at 12:15 PM ---------- Previous update was at 08:35 AM ----------
sorry.. function word will not come in front of the function name
Try using a binary FTP. Add the command binary in the FTP deck something like this:-
The default if probably ASCII, and that can corrupt a non-ASCII file in transit.
Try using a binary FTP. Add the command binary in the FTP deck something like this:-
The default if probably ASCII, and that can corrupt a non-ASCII file in transit.
Robin
adding binary did the trick, thanks
---------- Post updated at 06:09 AM ---------- Previous update was at 05:30 AM ----------
to take this script one step further.. how can I process more than one folder?
so I execute the script in the root directory with all the folders inside
eg.
folder1 has 100 folders inside
folder 2 has 100 folders inside
etc
so the script would create the folders with the same name on the ftp server and copy them in to the same folder?
resulting in a copy of my files but all zipped individually in there own folders.
currently I have to go in to each folder to execute the script.
I tried adding mkdir "$dir" cd "$dir" but its creating seperate folders for each individual zip file rather than just a folder with the same name with all the zip files inside.
I am trying to combine zip and ftp upload in one script but for some reason I can't get it to work. It zips properly but does not ftp, seems like it just ignores ftp. Any help would be greatly appreciated. Thanks!
#!/bin/sh
cd /home/user/test
zip -r test.zip *
FOLDER='/home/user/test'... (2 Replies)
Hi all i am very new to shell scripting and need some help from you to learn
1)i have some log files that gets generated on daily basis example: i have abc_2017_01_30_1.log ,2017_01_30_2.log like wise so i want to zip this 4 logs which are created on same date into one zip folder.
2)Post zipping... (1 Reply)
Hi all i am very new to shell scripting and need some help from you to learn
1)i have some log files that gets generated on daily basis example: i have abc_2017_01_30_1.log ,2017_01_30_2.log like wise so i want to zip this 4 logs which are created on same date into one zip folder.
2)Post zipping... (2 Replies)
Hi
I have a requirement in unix shell where I need to zip multiple files on server to one single .zip file. I dont see zip command in AIX and gzip command not doing completely what I want.
One I do .zip file, I should be able to unzip in my local Computer.
Here is example what I want... (9 Replies)
Hi ,
I am working on a script which will do the below things
1) It will checkout from the repository
2) then zip that checkout stuff
3) and put the zip folder to FTP server
Here my question is I am able to checkout successfully
through this coomand
svn co... (2 Replies)
Hello
I've an old xbox connected to Ubuntu 8.04 with an ethernet cable.
I use gFTP to transfer files on xbox (through FTP).
When I have to transfer a rar file, first of all I have to extract it on ubuntu, then on xbox.
I would like to transfer rar files directly on xbox. Is it possible with... (4 Replies)
Huloo,
whats diff between TAR+zip+FTP and TAR+FTP,can't we simpply FTP a file without Zipping it?
TAR is simply for Archiving ,then why do we need to Zip it?
:( (1 Reply)
Hello,
I am trying to return the name of the resulting file from a .zip archive file using unix unzip command.
unzip c07212007.cef7081.zip
Archive: c07212007.cef7081.zip
SecureZIP for z/OS by PKWARE
inflating: CEP/CEM7080/PPVBILL/PASS/G0063V00
I used the following command to unzip in... (5 Replies)
Hi
I have a zip file that I am ftping to another server. After I have ztped the file it is corrupt and cannot be opened by winzip.
Can anyone throw any light on to why this would happen.
I have no problems with sending the individual files, but when zipped into one file it becomes... (3 Replies)
hi
this is my question
i have my script what have to verify the existence of a .ZIP file in a extern server (using ftp). if there are .ZIP files, the idea is what the script "unzip" them in the specified folder.
THE PROBLEM IS what the script doen´t unzip the .ZIP files, and besides, delete... (1 Reply)