Erik,

Thanks for the tip, but ultimately that has the same problem. For now I will
just change the file attributes to require a sudo to edit or delete
subroutines. The main purpose was to put them some place where they would
not get accidentally deleted if someone was over zealous in cleaning up the
nc_files folder.

Thanks,
Eric

Until LinuxCNC supports separate directories directly, there is a workaround
for both these use cases. Simply put the subroutine or other files in any
desired directory, then place a link to each file in the $PROGRAM_PREFIX
directory. e.g. for the latter use case:

$ ln /home/emcuser/emc2/subroutines/mysub001.ngc /home/emcuser/emc2/nc_files

(That's one line, but your mail client has probably wrapped it.)

That hard link makes the file appear equally in both directories, though
only one copy exists on disk. If one link is deleted, the one copy will
still be in the other.

If the two directories are on separate devices, you'll need a symlink
instead, i.e. add "-s" after the "ln". That link will remain afterwards, if
the file it points to is deleted, and so is a little more work to maintain
in that case.

Hopefully there's something new in the above, for Lars or Eric. At least it
is a way to do what they want, for now. The $PROGRAM_PREFIX directory is now
only a funnel connecting to a thousand file directories, if desired.



------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to