Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - shell script gurus here?: Page 1 of 5 (5 Items)
   
shell script gurus here?  
Hi,

I have a target embedded filesystem with various QNX files, that on the host are in bin, sbin, usr/sbin, etc. On my 
target they are all in bin. Now I want to replicate this setup for another CPU platform.

I thought of a shell script that takes the output from ls /bin on the target and on the host (mounted via NFS) does a 
find on /usr/qnx641/target/qnx6/[myCPU-arch] and so generates a list of all the files with paths on the host.

Then the script would copy all the files from their host locations to a new directory bin. This new directory I would 
then copy to the new, other target.

This surely can be done with a smart shell script, but I don't know how to do it. It's too long ago that I did some 
scripts... Anyone know how to do this?


- Malte