Script for zipping + FTP transfer
Hello all !
*_My needs :_*
I would like to zip my video files before sending them through FTP. I would like to use Compressor for all these tasks.
*_My problem :_*
I found a script on the internet for zipping, then set my destinations to my FTP server.
When I compress a file with my settings, it creates a zip version of my file then sends the unzipped version on the ftp server! Dooh ! I understand that my script doesn't tell Compressor to send the zip version of the file.
Does anyone know how I could make it work ?
Thank you for your help !
Don't know how to do all that in compressor, but using Stuffit you can set a watched folder that will zip anything that lands in there and ftp to where ever you like. Just a thought...
Similar Messages
-
Shell script for archive log transfer
hi
I dont want to reinvent the wheel.
I am looking for shell script for log shipping to provide standby db.
What I want to do is, get the last applied archived log number from alert.log
Copy the files from archive destination according to this value.
CheersIf you don't want to re-invent the wheel you use Dataguard, no scripts.
And your script should use the dictionary, instead of some bs method to read the alert.
v$archived_log has all information!
Also as far as I know, the documentation describes manual standby.
So apparently you not only don't want to reinvent the wheel, but you want the script on a silver plate on your doorstep!
Typical attitude of most DBAs here. Use OTN for a permanent vacation.
Sybrand Bakker
Senior Oracle DBA -
How to avoid password prompt in shell script for zip password protection
Hi
I am trying to set password protection to my oracle database export backup. Once the backup completed, it should compress with a password protection. Thats the plan. Initialy we were using the gzip for the compression. Then realized that there is no password protection for the gzip. Started using zip option. I tried using
zip -P <password> filename
But it was throwing below error.
-bash-3.2$ zip -P expreports REPORTS_2013FEB14.dmp
zip warning: missing end signature--probably not a zip file (did you
zip warning: remember to use binary mode when you transferred it?)
zip warning: (if you are trying to read a damaged archive try -F)
zip error: Zip file structure invalid (REPORTS_2013FEB14.dmp)
Not quite sure why.
Then I used zip -e REPORTS_2013FEB14.dmp.zip REPORTS_2013FEB14.dmp
But this prompting for the password. As I am trying to put the command in the script. It will be tough if it prompts for the password.
I would like to know how to avoid the password prompting by saving somewhere or how the code should be written. Tried using expect feature of shell script. Below was the code I tried. It didnt work.
[oracle@SF40V6636 test]$ cat repexp.sh
zip -e REPORTS_imp.log.zip REPORTS_imp.log
expect "Enter password:"
send "imprep"
expect "Verify password:"
send "imprep"
So please help in avoiding this password prompt or let me know how to change the code.
Thanks
SHIYAS MHow about using gpg and adding a secret key to the requirement of a password? No one should be able to decrypt your file, not by knowing only the password.
1. Generate a public and private key pair:
$ gpg --gen-key
When it shows "We need to generate a lot of random bytes…" open another terminal session and type "dd if=/dev/sda of=/dev/null" to create traffic. When the public and secret key created and signed you can Ctrl-C the dd command.
To see what you have created:
$ gpg --list-keys
2. Encrypt and gzip your stuff:
$ tar zcf stuff.tgz file_or_folder
$ gpg recipient "Some Name" encrypt stuff.tgz
$ rm -f stuff.tgz
3. Decrypt and extract the archive:
$ gpg batch yes --passphrase "password" -d stuff.tgz.gpg > stuff.tgz
$ tar zxvf stuff.tgz
Again, knowing the password alone will not let anybody decrypt your stuff. -
PHP Upload script for ZIP/SIT files
Hi,
I'm trying to locate a decent script that would allow clients
to upload files to a Web site that I am working on. I found a basic
one that works at www.w3schools.com/PHP/php_file_upload.asp.
However, it lack the capabilities to upload zip and sit files.
Could I modify the existing script that I just mentioned?
Unfortunately, I am not very PHP saavy. I have been Googling for
such a script but have not found one yet. I hope some one could
recommend a decent script. Thanks..oO(Mark A. Boyd)
>Carlton Chin posted in macromedia.dreamweaver.appdev:
>
>> I'm trying to locate a decent script that would
allow clients to
>> upload files to a Web site that I am working on. I
found a basic
>> one that works at
www.w3schools.com/PHP/php_file_upload.asp.
>> However, it lack the capabilities to upload zip and
sit files.
>> Could I modify the existing script that I just
mentioned?
>
>The ticket is where the script is checking
$_FILES["file"]["type"].
>See
http://www.w3schools.com/media/media_mimeref.asp
>
>If you only want to allow zip/sit, try changing this:
>
><?php
>if ((($_FILES["file"]["type"] == "image/gif")
>|| ($_FILES["file"]["type"] == "image/jpeg")
>|| ($_FILES["file"]["type"] == "image/pjpeg"))
>&& ($_FILES["file"]["size"] < 20000))
Be careful. These informations can be faked or might not be
available at
all. I can easily upload a PHP script as "image/jpeg". If the
file ends
up in a public directory within the document root, I can
execute it and
then have a look at the entire server ...
Relying on the content type or file extension is a huge
security hole!
I'm quite surprised that W3Schools publishes such an insecure
script.
To make sure that an uploaded file is really of the type you
expect, you
must look at its content! For images you can use
getimagesize(), which
will also return the type if it's a valid image. For other
types you
have to use other libs or external tools. On a *nix machine
you could
execute the shell command 'file' for example, which
recognizes quite a
lot of different file types.
Micha -
Transfer script for public sites
Hi,
Is there a way for using a transfer script in public sites ?
I only want to get the content information using a script.
ThanksWe're not including the destination variable in the form post that calls our cgi script. I can't get to the Edit Site Settings window in the original iTunes U store - we use this transfer script to handle the admin access, and it isn't working for that either. I've been testing a very simple version of this Perl script from a fresh copy of the sample files collection, and with debugging enabled it looks like it is getting everything except for a current time - it tells me that the time is valid, but is "too far in the past" and so it doesn't include the otherwise valid identity and credential values. I'm checking with our system administrators to verify that our server's time is accurate. Thanks for the follow-up response.
-
Compression for ftp transfer before re-editing footage in FCP
Hi to all,
I am soon going to be receiving DV footage daily,that is going to be sent via ftp transfer. I will then be editing that footage and posting it on the web.
The people sending the footage will have little internet access time during their trip.
Since the end result is for web purposes, i would like the shooters to compress their PAL footage in 320x240 before posting in on the ftp.
Would anyone have any suggestions as far as to what would be the most appropriate compression options out of FCP for it to be light enough to travel fast, and easily re-imported in FCP after arrival.
I would assume i would then calibrate my projet to the settings that have been sent, right?
thanks for your help.
Tee.Thanks for your answers.
I'm aware of the terrible quality loss that will be occurring.
The end format is for the web, and the idea is to keep a chronicle of the 2 week event, with a short video update.
The subject matter is what is of importance here. The event is a 2 week demonstration across europe against unemployment and growing social injustice.
It would be great to have more time and money to use the original footage (via fedex and later editing).
But i will try diffrent transfer options. One may work.
My main question is, (with this totally random example)
lets say i receive a compressed sorenson 3 .mov at 320x240 frame size, with a keyframe at every 15i, sound converted to stereo AAC at 96 kbps....
When i import that file in final cut,can i adjust my presets to match that?
Or will i need to edit in a DVPAL 720x576 preset, and render...
thanks again;
tee. -
Anybody Used WHG FTP Backup Script for Cpanel?
Has anybody had experience with this script for automated
backup with thier
Cpanel software?
http://www.webhostgear.com/174.html
TIA,
Jon Parkhurst
PriivaWeb
http://priiva.net.Or this service, or any data backup service?
http://www.tranxactglobal.com/backupservice.php
Basically just looking for low-cost backup solutions. Would
rather have a
script (bought or free, whichever works better) than a
service, b/c I want
to have close control over it.
Thanks,
Jons -
FTP transfer and managing program for Leopard?
Hi, I hope someone can help me
I am looking for an FTP client that has similar functions to that in Dreamweaver. I need to manage and build a website. The FTP program must have the ability to automatically mark files that I have edited on my computer, so that I can upload them whenever etc.
Do you know any such programs?
Thanks!resolved: http://discussions.apple.com/thread.jspa?threadID=2144635&tstart=0
-
Shell script for moving and renaming files
I'm not so familiar with shell scripts. I have created some simple scripts for various tasks but now I hit something I can't handle myself.
My server receives every night a logfile from another server. This file I need to rename and move to another location. Problem is that a simple mv with new filename isn't enough, I need to insert date in filename. Format for date should be ddmmyy. Also the name of incoming file changes every night. The output always starts with same letters, let's say "log", and the date is used to identify files.
For example I receive a file /Input/filename.log and I need to move the file to the folder /Output with name log130308.txt.
Any tips how to insert the date as part of of filename while renaming or moving the file? I prefer shell script as I'll use launchd for scheduling the script.Hi again,
so far I've constructed this:
cd /input
for file in `ls *log`
do
echo "Copying " $file
cp $file /output/log.$file.`date +%d%m%y`
done
Quite there. I'm cding to directory, i'll focus later how to set some environmental parameters.
Problem with zipping is that I don't know exact logfiles names. Each day there's a new name. So zip -q filename.zip filename.log isn't quite enough and it's impossible to use wildcards. The switch -q and checksums were welcome suggestions.
Thanks again,
Juha
Message was edited by: J.Otava -
NEED a java coder to help with a script for a programs of mine.
I play a game, very competitively, and need someone to make and compile a script for me. I am willing to pay upwards of 100 USD for this script made to MY standards. There will be a lot of work involved...Probably 12 hours studying my game and the purpose of the script(s). I will be buying 2-3 scripts, at roughly 50-100 USD each, depending on the quality. I will transfer the money via paypal, or other means if we can reach an agreement.
Please IM me at Chadtrapier on AIM or send an email to [email protected]
Or...Add me on MSN - [email protected]
We can reach an agreement with these scripts...
Thank you, I will also check this thread, so reply if you would like.
~ChadUmmm. Do you think that's a lot of money or something? Think in the range of 40-60 per hour. And if you're talking about warcraft I don't think they java hooks to make bots. I think you need to figure out what your problem is first and maybe learn to code them yourself.
-
Hi,
I have written shell script for below scenarios, can you please guide me to write this as correct way, requirment is,
1. i need to connect the database which is on unix server , but before connecting the DB some of the files needs to be removed from \tmp directory.
2. once removed the script need to connect the database and call the sql file which is in \tmp directory.
3. the output files will be stored in \tmp directory start with DB name.
4. finally csv files needs to be transferred to local windows with help of FTP. please find below the script
#!/bin/sh
rm -f /tmp/dbmon/DB1*
CONNSTRING=username/PASSWORD@service
sqlplus -s $CONNSTRING @/tmp/STATS.sql << EOF
EXIT;
EOF
HOST='xxxxx'
USER='xxxxx'
PASSWD='xxxxxx'
FILE='E:\STATS\DB1.*'
cd /tmp/dbmon
ftp -n -v $HOST << EOT
user $USER $PASSWD
prompt
mput $FILE
bye
EOT
EXIT;
EOF
Thanks
Edited by: ASP on Nov 18, 2011 4:45 PMHi ASP
It's always a good idea to write entries to timestamped log file without which you will never know where the script went wrong or failed.
This is not tested but just a small example
#!/bin/sh
export LOG_DIR=/tmp/log
export LOGFILE=$LOG_DIR/`basename $0`_${TIMESTAMP}.log
if [ ! -d $LOG_DIR ]
then
mkdir $LOG_DIR
fi
echo "Removing the temporary files from /tmp/dbmon at `date +%Y%m%d_%H:%M:%S`" | tee -a $LOG_FILE
rm -f /tmp/dbmon/DB1*
CONNSTRING=username/PASSWORD@service
echo "Run SQLPlus file" | tee -a $LOG_FILE
sqlplus -s $CONNSTRING @/tmp/STATS.sql << EOF
EXIT;
EOF
echo "Now FTP the files to windows box " | tee -a $LOG_FILE
HOST='xxxxx'
USER='xxxxx'
PASSWD='xxxxxx'
cd /tmp/dbmon
ftp -vn $HOST <<EOF
quote USER $USER
quote PASS $PASSWD
ascii
cd E:\STATS
mput DB1.*
bye
EOF -
Hey peeps,
Im trying to publish a web gallery to be hosted on BC. Despite having what seem the correct settings im getting an error: FTP transfer failed ' unknown message'. Have checked with techs on BC. They say FTP working fine that end.
Any suggestions?Have you tried connecting to another FTP server in Lightroom?
For example, if you get a free Flickr account, can you login to it and upload a file to it?
If you can't upload to any server, then you have a general FTP-in-Lr problem, but if problem is only with BC then, well, it's time to start scrutinizing the BC settings..
PS - All my FTP'ing plugins have an enhanced FTP settings test feature designed to help you debug FTP settings, so another option is to download one of them, for example:
robcole.com - FTPAggregator
and experiment with settings tester:
To get here, you have to click 'View / Edit Additional Settings' (in plugin manager), then choose 'New' or 'Edit' from 'Sync Pairs' drop-down menu.
If test is unsuccessful, enable verbose logging (top section of plugin manager), and review the log file after test, or send to me.
If you have a problem running plugin, please contact me directly:
robcole.com - Contact Me
Rob -
Is there any API's for providing FTP using ssh port.
Currently we are having a requirement to FTP files only using ssh port(Secure FTP). Can anyone please suggest me an API which provides the FTP'ing operation using SSH port.
I am currently using a Sinetfactory thirdparty package from JScape for the Secure FTP functionality(FTP over SSH). But Sinetfactory package tranfer rate is much slower than the manual sftp(command-line run in linux server for manual ftp using ssh).
Since it is very slower than ordinary sftp(ftp over ssh), I thought of using other thirdparty FTP package which supports FTP using ssh port. Can anyone please suggest me a thirdparty package which will has the sftp functionality and with better transfer rate. -
JMS Transfer not completing the FTP Transfer in Solaris 10
We have an application which transfers huge files between unix servers through JMS.
We had Solaris 8 and the ftp was working just fine.
But after we rebuilt our server to Solaris 10,the ftp does not work.
When tracing the ftp we found this in logs.
Jul 17 15:22:36 uxdtpr02 ftpd[27870]: [ID 165209 daemon.info] USER dmsftp
Jul 17 15:22:36 uxdtpr02 ftpd[27870]: [ID 125383 daemon.info] PASS password
Jul 17 15:22:36 uxdtpr02 ftpd[27870]: [ID 470890 daemon.info] SYST
Jul 17 15:22:36 uxdtpr02 ftpd[27870]: [ID 307055 daemon.info] TYPE Image
Jul 17 15:22:36 uxdtpr02 ftpd[27870]: [ID 201503 daemon.info] CWD /
Jul 17 15:22:36 uxdtpr02 ftpd[27870]: [ID 313182 daemon.info] PORT
Jul 17 15:22:36 uxdtpr02 ftpd[27870]: [ID 206289 daemon.info] STOR corporateclientcntrl.xml
Jul 17 15:22:36 uxdtpr02 ftpd[27870]: [ID 225560 daemon.info] QUIT
For the ftp user,only folder he can see is the folder where the drop takes place.
But the ftp is calling a CWD / which is making the folder to go a folder backwards and the user do not have access to that folder and hence we get FTP error.
The Transfer code did not change at all.
This is what happens when a user does ftp manually from the source server to Destination server.
Jul 17 15:22:02 uxdtpr02 ftpd[27707]: [ID 125383 daemon.info] PASS password
Jul 17 15:22:02 uxdtpr02 ftpd[27707]: [ID 470890 daemon.info] SYST
Jul 17 15:22:02 uxdtpr02 ftpd[27707]: [ID 307055 daemon.info] TYPE Image
Jul 17 15:22:05 uxdtpr02 ftpd[27707]: [ID 313182 daemon.info] PORT
Jul 17 15:22:05 uxdtpr02 ftpd[27707]: [ID 307055 daemon.info] TYPE ASCII
Jul 17 15:22:05 uxdtpr02 ftpd[27707]: [ID 188419 daemon.info] NLST
Jul 17 15:22:06 uxdtpr02 ftpd[27707]: [ID 307055 daemon.info] TYPE Image
Jul 17 15:22:27 uxdtpr02 ftpd[27707]: [ID 313182 daemon.info] PORT
Jul 17 15:22:27 uxdtpr02 ftpd[27707]: [ID 206289 daemon.info] STOR corporateclientcntrl.xml
Jul 17 15:22:30 uxdtpr02 ftpd[27707]: [ID 313182 daemon.info] PORT
Jul 17 15:22:30 uxdtpr02 ftpd[27707]: [ID 307055 daemon.info] TYPE ASCII
We do not know how to set the ASCII mode for JMS ConnectionFactory.
Anyone has any idea how to resolve this issue?This is a showstopper and very critical for our project.We have an application which transfers huge files between unix servers through JMS.
We had Solaris 8 and the ftp was working just fine.
But after we rebuilt our server to Solaris 10,the ftp does not work.
When tracing the ftp we found this in logs.
Jul 17 15:22:36 uxdtpr02 ftpd[27870]: [ID 165209 daemon.info] USER dmsftp
Jul 17 15:22:36 uxdtpr02 ftpd[27870]: [ID 125383 daemon.info] PASS password
Jul 17 15:22:36 uxdtpr02 ftpd[27870]: [ID 470890 daemon.info] SYST
Jul 17 15:22:36 uxdtpr02 ftpd[27870]: [ID 307055 daemon.info] TYPE Image
Jul 17 15:22:36 uxdtpr02 ftpd[27870]: [ID 201503 daemon.info] CWD /
Jul 17 15:22:36 uxdtpr02 ftpd[27870]: [ID 313182 daemon.info] PORT
Jul 17 15:22:36 uxdtpr02 ftpd[27870]: [ID 206289 daemon.info] STOR corporateclientcntrl.xml
Jul 17 15:22:36 uxdtpr02 ftpd[27870]: [ID 225560 daemon.info] QUIT
For the ftp user,only folder he can see is the folder where the drop takes place.
But the ftp is calling a CWD / which is making the folder to go a folder backwards and the user do not have access to that folder and hence we get FTP error.
The Transfer code did not change at all.
This is what happens when a user does ftp manually from the source server to Destination server.
Jul 17 15:22:02 uxdtpr02 ftpd[27707]: [ID 125383 daemon.info] PASS password
Jul 17 15:22:02 uxdtpr02 ftpd[27707]: [ID 470890 daemon.info] SYST
Jul 17 15:22:02 uxdtpr02 ftpd[27707]: [ID 307055 daemon.info] TYPE Image
Jul 17 15:22:05 uxdtpr02 ftpd[27707]: [ID 313182 daemon.info] PORT
Jul 17 15:22:05 uxdtpr02 ftpd[27707]: [ID 307055 daemon.info] TYPE ASCII
Jul 17 15:22:05 uxdtpr02 ftpd[27707]: [ID 188419 daemon.info] NLST
Jul 17 15:22:06 uxdtpr02 ftpd[27707]: [ID 307055 daemon.info] TYPE Image
Jul 17 15:22:27 uxdtpr02 ftpd[27707]: [ID 313182 daemon.info] PORT
Jul 17 15:22:27 uxdtpr02 ftpd[27707]: [ID 206289 daemon.info] STOR corporateclientcntrl.xml
Jul 17 15:22:30 uxdtpr02 ftpd[27707]: [ID 313182 daemon.info] PORT
Jul 17 15:22:30 uxdtpr02 ftpd[27707]: [ID 307055 daemon.info] TYPE ASCII
We do not know how to set the ASCII mode for JMS ConnectionFactory.
Anyone has any idea how to resolve this issue?This is a showstopper and very critical for our project. -
Debugging in script for F110 transaction
Hi all,
For bank transfer form i have created a vendor document in FB60 and the corresponding document was created in F110.
Script name for this bank transfer form is f110_d_avis.When customizing the script i have taken a z-copy of this script. From that copied script i have called perform statement and then put a debug in the program.
My need is whenever i click the spool request in F110 the debugging should on.But it was not even i had activated RSTXDBUG and using break-point in the program.
Can anyone please help me?
Regards,if u included a break point in the form routine it should stop there, and if its not stopping there, u need to check following things.
Is the correct script being called, for that put a break point at open_form and check the value of script name.
is the perform within and if condition, that is causing the script to entirely skip the perform,
is ur breakpoint within any condition in the form subroutine.
check these three things first.
Maybe you are looking for
-
Unable to retrieve the values from stored procedure
Hi all I written one procedure and when i am trying to invoke that store procedure from jdbc it is throwing the following error . java.lang.ClassCastException: org.apache.tomcat.dbcp.dbcp.DelegatingCallableStat ement at com.srit.hrnet.helpdes
-
How to Rollback a Dropped Table
Hi How i do i rollback from a dropped table? I have created a sample table as follows begin transaction create table sample_t1 (id int, class nvarchar(100), subject nvarchar(100)) INSERT INTO sample_t1 VALUES(10,'XYZ','LKJ') INSERT INTO sample_t1 VAL
-
Inventory Services does not start up
ZFD3.2 installed on "ZFD" resource in a 2-node NW6SP2 Cluster (SOU-SRV3 and SOU-SRV4) I have just installed ZFD3.2 with NCS. When I try to start the Inventory Service I get the following error message briefly displayed on the Server Console Screen: C
-
SQL dependency OnChange event constantly when using a specific database on SQL server
Hello I did some prototype dev using a new db I created on our dev SQL server instance and OnChange events only when the underlying data was changed. I tried the same thing with another database on the same server which is a replica of our live datab
-
How do I open a photo I uploaded from Dreamstime?
Uploaded a photo from dreamstime.com to Firefox. The symbol for the photo is in the download section but I tried to move and couldn't and couldn't open it. What should I do?