Forum Discussion
estradjs_130284
Nimbostratus
Aug 29, 2013Tmsh: problem moving two files to the Sandbox (from an iApp)
Hello all,
While I was developing an iApp, I needed to move two different files from a linux folder (/var/tmp) to the APM's sandbox.
This can be done using the TMSH 'modify' command, here an example:...
- Aug 30, 2013
I see the issue now. I filed it as a product bug. Here is a workaround that calls a script from within the iapp and uses a time delay to solve the timestamp issue.
set fh [open my_script w] puts $fh " tmsh modify apm resource sandbox hosted-content { files add {\ foo1.xml { folder /test local-path /var/tmp/bar1.xml }}} sleep 1 tmsh modify apm resource sandbox hosted-content { files add {\ foo2.xml { folder /test local-path /var/tmp/bar2.xml }}} " close $fh exec bash my_script
Fred_Slater_856
Aug 30, 2013Historic F5 Account
I see the issue now. I filed it as a product bug. Here is a workaround that calls a script from within the iapp and uses a time delay to solve the timestamp issue.
set fh [open my_script w]
puts $fh "
tmsh modify apm resource sandbox hosted-content { files add {\
foo1.xml { folder /test local-path /var/tmp/bar1.xml }}}
sleep 1
tmsh modify apm resource sandbox hosted-content { files add {\
foo2.xml { folder /test local-path /var/tmp/bar2.xml }}}
"
close $fh
exec bash my_script
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects