Hello Wolfgang, > Your first problem is the sed 's/ /,/g' part which will split > "Apr 1" in 3 friends due to the 2 space. You probably rather want > to use sed 's/ \+/,/g' . > > But then, the cut -d ',' -f 10,12 gives "->" - I think this should > be "-f 11" instead of "-f 10" in both instances. > > And even with these two changes, you get > > Drive-1 tape QUANTUM ULTRIUM 4 U61T /dev/st1 /dev/sg7 > Archive Device = ../../nst1 > sginfo(open): Device or resource busy > file=../../nst1, or no corresponding sg device found > Is sg driver loaded? > > for all the tape drives. Either you edit the device names as needed > so they canbe found (../../nst1 should be /dev/nst1 instead), or you > simply "cd" into the /dev/tape/by-id/ directory in your script > before doing anything else. The latter is easier to implement, > while the former would result in better readable file names.
Yes, some cut problem with different OS output. Please try this new version: https://pastebin.com/uZn4b5qA If it doesn't work please return in PVT so we don't pollute the list. > But all these changes will not fix the problem that devices currently > used (for example by a running bacula), will not be accessable, so > you get above "Device or resource busy" error... > > Best regards, Regards, -- Heitor Medrado de Faria | EB-1 Visa | LPIC-III | ITIL-F | EMC 05-001 • Check my Bacula Book at Amazon.com http://bacula.us/book • Do you need Bacula training? http://bacula.us/video-classes/ • USA +1 (323) 300-5387 | Brazil +55 (61) 98268-4220 | http://bacula.us ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Bacula-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-users
