Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-9068 Deploy Exectable Script

I have a (working) project for my NI-9068 cRIO that I'm developing on Windows.  As part of my build specification, I'm uploading some linux scripts to the 9068.  What I want is to have those scripts flagged as exectuable (chmod +x) on the 9068 when they're deployed from LabVIEW.  Is there a way I can set the file up in windows so that when it's uploaded that the bits are set?  Alternatively, is there a way for me to fire some ssh commands to the 9068 when I click "deploy" or "run as startup" from the build specification?

 

thanks in advance.

0 Kudos
Message 1 of 3
(3,794 Views)

Managing these bits in files exchanged with Windows is always a pain (not just on cRIO targets but on any mixed Linux/Windows environment). Usually either all of your files from Windows get +x (even if they aren't executable) or none of them (even if they are) on Linux.

 

Can you fix the permissions as an early step of your deployed VI? See http://zone.ni.com/reference/en-XX/help/371361H-01/glang/setting_permissions/ for what I have in mind.

 

You may get a good audience for this question at https://decibel.ni.com/content/groups/ni-linux-real-time if you repost this there.

0 Kudos
Message 2 of 3
(3,785 Views)

Hi there,

 

According to your post I am seeing that you want to install a start up scripts on the cRio. if so it would be a good idea to take a look into this file

 

Also here is some document that could be useful for you

 

Regards

0 Kudos
Message 3 of 3
(3,765 Views)