SCP Transfer: Execute after Transfer?

Questions and information about Crank Software's Storyboard Designer

Moderator: jamiev

SCP Transfer: Execute after Transfer?

Postby stubbornthings » Fri Mar 24, 2017 9:52 am

Hi,

I love the SCP Transfer feature in the new version of Storyboard but the 'execute after transfer' option isn't working for me. The app gets copied to the target just fine but I'm not seeing any indication the the script file is opened at all.

I placed my script file (launch.sh) under /home/root/mnt/mmc and placed the following text in 'execute after transfer' box.

/home/root/mnt/mmc/launch.sh

launch.sh
Code: Select all
#! /bin/sh
cd
/home/root/mnt/mmc/storyboard_engines/linux-imx6dl/linux-imx6yocto-armle-fbdev-obj/bin/sbengine -vvvv -omtdev,device=/dev/input/touchscreen0 -ogesture,mode=multi /home/root/mnt/mmc/storyboard_export/LCA/LCA.gapp


Thanks.

Scott B
stubbornthings
 
Posts: 7
Joined: Tue Aug 02, 2016 3:25 pm

Re: SCP Transfer: Execute after Transfer?

Postby mlove » Fri Mar 31, 2017 9:15 am

Hi,

One thing I notice is that your script isn't setting up the LD_LIBRARY_PATH and SB_PLUGINS environment variables. I imagine this is the problem, you'll need to add runtime's lib path added to LD_LIBRARY_PATH, and it's plugin path added to SB_PLUGINS before calling sbengine. You also do not want to specify a specific gapp file in your script, Designer will pass the exported gapp file path to the script as a parameter. Here is an example script file I've used with a scp export (although you'd want to export LD_LIBRARY_PATH instead of DYLD_LIBRARY_PATH since you're running linux), hopefully this helps:

#!/bin/sh
export ENGINE=/testing/macos-x86-opengles_2.0-obj
export SB_PLUGINS=$ENGINE/plugins
export DYLD_LIBRARY_PATH=$ENGINE/lib

$ENGINE/bin/sbengine $1

Regards,

Matt L
mlove
 
Posts: 18
Joined: Tue Apr 17, 2012 1:26 pm

Re: SCP Transfer: Execute after Transfer?

Postby stubbornthings » Fri Mar 31, 2017 10:09 am

Hi,

Thanks. I will try and let you know how it goes.

Regards,

Scott B
stubbornthings
 
Posts: 7
Joined: Tue Aug 02, 2016 3:25 pm

Re: SCP Transfer: Execute after Transfer?

Postby polzin » Fri Apr 21, 2017 2:39 pm

Was wondering if the user had any luck?

I am trying to do the same and am finding that the post transfer script does not seem to run as well.

I have a script restart.sh located in /root which contains a sync and then a reboot command. if i execute the script manually in a terminal, it functions as expected. However, after updating the application, designer does not seem to execute the script. Any ideas?
polzin
 
Posts: 2
Joined: Wed Nov 18, 2015 3:23 pm

Re: SCP Transfer: Execute after Transfer?

Postby nschultz » Thu May 11, 2017 8:58 am

Hello Polzin,

Out of curiosity have you been able to successfully execute other scripts on your hardware via ssh? What OS are you running on, since you mention sync and reboot I'm going to guess this is QNX?

I've been able to get some simple scripts working on some linux systems on my end so I would like to know your configuration so I can try to reproduce this issue in house.

Thank you

Nik
nschultz
 
Posts: 19
Joined: Fri Jul 17, 2015 1:51 pm


Return to Storyboard Designer

Who is online

Users browsing this forum: No registered users and 1 guest