I have a Perl script that I have been using to perform builds. This script uses the source safe command line to fetch files into the workspace before doing any building. It does very rigorous error checking to be sure no problems go unnoticed during the build process. The fetch portion of this script has worked well for a number of months.

Yesterday I implemented a new feature. The original script fetched the latest version of all files, performed the build, and then at the very end attached a build label to the latest version of all files (hoping there had been no divergence between the fetch and the label steps). My change is to very early in the build label the latest version of the files, and then fetch the labeled version of all files. This is failing, reporting an error 25600, "No such file or directory".

I tested one last variation... I took the current script and removed the label argument from the get command and this is now failing with the same 25600 error.

The command line(s) I am using are:
ss get $/project -R -I-Y -V"MYBUILDLABEL" ss get $/project -R -I-Y
Immediately prior to the get I do a ss Workfold to set the working folder to the desired target location, and that is succeeding with no problem. I have tried running the command line by hand in a shell window and THAT works without error.

My questions:

1 - Why is source safe reporting a non-zero error code? What error is it reporting?

2 - Is my script just being overly sensitive to warnings and such, or is there something here I can fix so that the "get" begins returning zero (again)?

Thanks very much for your help, Marc

In reply to Perl source safe get by label failure by mgibian

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.