Link to home
Start Free TrialLog in
Avatar of Richard Teasdale
Richard TeasdaleFlag for United Kingdom of Great Britain and Northern Ireland

asked on

How to programmatically identify a remote windows folder from Linux

Hi : I am really proud of myself having written a ruby archive system that identifies recently amended files and copies them from x to y.
Trialling it on a linux PC works really well.
Accessing a Windows shared drive is pants.
I attach the code - and I suppose in this context the program does not matter - but the definition 'lister' identifies a local linux folder. Backup works
Replacing the lister reference (and its associated references blister, filer, and diler...yeah I am a crap programmer) with nister (and associated etc) does NOT work.
Does anybody know how to programmatically identify a remote samba shared folder on a windows server such that I can use it in the code as described? I copied the 'nister' reference directly from dolphin...am I doing something wrong?
ruby-archiver.txt
Avatar of noci
noci

check the mount command output is will show SMB for Workgroup &  NT type domain, and  CIFS for AD style domains.
(actualy lowercase...)
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.