<div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10pt" ><div dir="ltr" >Hi&nbsp; Ed,</div>
<div dir="ltr" >&nbsp;</div>
<div dir="ltr" >not a ready to run for "everything".. but just to remind, there is an ESCAPE statement</div>
<div dir="ltr" >by this you can</div>
<div dir="ltr" >&nbsp;</div>
<div dir="ltr" >&nbsp;cat policy2&nbsp;<br>RULE EXTERNAL LIST 'allfiles' EXEC '/var/mmfs/etc/list.exe' &nbsp;ESCAPE '%/#'</div>
<div dir="ltr" ><div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10pt" ><div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10pt" ><div dir="ltr" ><div>&nbsp;</div>
<div>and turn a file name into smth , what a policy can use</div>
<div>&nbsp;</div>
<div>I haven't used it for a while , but here is an example from a while ago .. ;-)</div>
<div>&nbsp;</div>
<div>[root@c25m4n03 stupid_files]# ll<br>total 0<br>-rw-r--r-- 1 root root 21 Mar 22 03:44 dämlicher filename<br>-rw-r--r-- 1 root root &nbsp;2 Mar 22 03:59 üöä???ßß spacefilen<br>[root@c25m4n03 stupid_files]#</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>policy:</div>
<div>101378 247907919 0 &nbsp; -- /gpfs/fpofs/files/stupid_files/d%C3%A4mlicher%20filename<br>101381 1945364096 0 &nbsp; -- /gpfs/fpofs/files/stupid_files/%C3%BC%C3%BC%C3%BC%C3%B6%C3%B6%C3%A4%C3%A4%3F%3F%3F%C3%9F%C3%9F%20spacefilename<br>[I]2013-03-22@13:12:58.687 Policy execution. 2 files dispatched. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;verify with policy &nbsp;(ESCAPE '%/ä ')</div>
<div>101378 247907919 0&nbsp;&nbsp; -- /gpfs/fpofs/files/stupid_files/dämlicher filename<br>[...]&nbsp;&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>hope this helps..</div>
<div>cheers</div>
<div>&nbsp;</div>
<div>&nbsp;</div></div></div></div></div>
<div dir="ltr" >&nbsp;</div>
<div dir="ltr" >&nbsp;</div>
<blockquote data-history-content-modified="1" dir="ltr" style="border-left:solid #aaaaaa 2px; margin-left:5px; padding-left:5px; direction:ltr; margin-right:0px" >----- Ursprüngliche Nachricht -----<br>Von: "Jonathan Buzzard" &lt;jonathan.buzzard@strath.ac.uk&gt;<br>Gesendet von: gpfsug-discuss-bounces@spectrumscale.org<br>An: gpfsug-discuss@spectrumscale.org<br>CC:<br>Betreff: [EXTERNAL] Re: [gpfsug-discuss] Handling bad file names in policies?<br>Datum: Di, 5. Okt 2021 01:29<br>&nbsp;
<div><font size="2" face="Default Monospace,Courier New,Courier,monospace" >On 04/10/2021 23:23, Wahl, Edward wrote:<br><br>&gt; I know I've run into this before way back, but my notes on how I solved<br>&gt; this aren't getting the job done in Scale 5.0.5.8 and my notes are from<br>&gt; 3.5.&nbsp; \U0001f609<br>&gt; Anyone know a way to get a LIST policy to properly feed bad filenames<br>&gt; into the output or an external script?<br>&gt;<br>&gt; When I say bad I mean things like control characters, spaces, etc.&nbsp; &nbsp;Not<br>&gt; concerned&nbsp;about the dreaded 'newline' as we force users to fix those or<br>&gt; the files do not get backed up in Tivoli.<br>&gt;<br><br>Since when? Last time I checked which was admittedly circa 2008, TSM<br>would backup files with newlines in them no problem. mmbackup on the<br>other hand in that time frame would simply die and backup nothing if<br>there was a single file on the file system with a newline in it.<br><br>I would take a look at the mmbackup scripts which can handle such stuff<br>(least ways in &gt;4.2) which would also suggest dsmc can handle it.<br><br>As an aside I now think I know how you end up with newlines in file<br>names. Basically you cut and paste the file name complete with newlines<br>(most likely at the end) into a text field when saving the file.<br>Personally I think any program should baulk at that point but what do I<br>know.<br><br><br>JAB.<br><br>--<br>Jonathan A. Buzzard &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Tel: +44141-5483420<br>HPC System Administrator, ARCHIE-WeSt.<br>University of Strathclyde, John Anderson Building, Glasgow. G4 0NG<br>_______________________________________________<br>gpfsug-discuss mailing list<br>gpfsug-discuss at spectrumscale.org<br><a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss" target="_blank">http://gpfsug.org/mailman/listinfo/gpfsug-discuss</a>&nbsp;</font></div></blockquote>
<div dir="ltr" >&nbsp;</div></div><BR>
<BR>