Revision history [back]

click to hide/show revision 1
initial version

How to set up swift upload via a script called through cron

I am using "swift upload" to transfer files to container, the upload command works from command line or via script when executed from command line, however if the script is put in cron the transfer doesnt work. No error is seen.

Script logic

!/bin/bash

/bin/echo "Starting Test1" >> /tmp/tmprun /usr/bin/swift "upload" "<destination>" "<sourcefile>"

Please suggest how to schedule a swift upload via script?

Regards, GunaSeelan J

How to set up swift upload via a script called through cron

I am using "swift upload" to transfer files to container, the upload command works from command line or via script when executed from command line, however if the script is put in cron the transfer doesnt work. No error is seen.

Script logic

logic ========

!/bin/bash

#!/bin/bash /bin/echo "Starting Test1" >> /tmp/tmprun /usr/bin/swift "upload" "<destination>" "<sourcefile>"

"<Destination>" "<SourceFile>"

Please suggest how to schedule a swift upload via script?

Regards, GunaSeelan J