<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>files Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/files/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/files/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 09:55:54 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Syncing missing/modified files to a specific version in Perforce</title>
		<link>https://www.scmgalaxy.com/tutorials/syncing-missing-modified-files-to-a-specific-version-in-perforce/</link>
					<comments>https://www.scmgalaxy.com/tutorials/syncing-missing-modified-files-to-a-specific-version-in-perforce/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Mon, 08 Jan 2018 12:00:29 +0000</pubDate>
				<category><![CDATA[Perforce]]></category>
		<category><![CDATA[files]]></category>
		<category><![CDATA[Find]]></category>
		<category><![CDATA[Missing]]></category>
		<category><![CDATA[Missing/modified files]]></category>
		<category><![CDATA[modified]]></category>
		<category><![CDATA[sync]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=4543</guid>

					<description><![CDATA[<p>I think this is the 5th time I&#8217;ve had to figure this out in the past few years, so this [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/syncing-missing-modified-files-to-a-specific-version-in-perforce/">Syncing missing/modified files to a specific version in Perforce</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I think this is the 5th time I&#8217;ve had to figure this out in the past few years, so this time I&#8217;m going to preserve it here for posterity <img decoding="async" src="http://www.andrewgrant.org/wordpress/wp-includes/images/smilies/icon_smile.gif" alt=":)" /></p>
<p>The problem is usually one or more of:</p>
<ul>
<li>You have files missing from your workspace that need replaced.</li>
<li>You have locally modified (i.e. not opened for edit) files that need replaced.</li>
<li>These files are large in either size or number, and on a slow or remote server, so a complete force-sync is not an appealing option.</li>
</ul>
<p>Normally this could easily be solved with something like <em>p4 diff -sd/-se //depot/path/.. | p4 -x – sync -f</em>, which finds all the missing/outdated files and then force-syncs them.</p>
<p>The problem with this approach comes when you need the files from a specific revision or label. While you can pass in a label/revision to &#8216;p4 diff&#8217;, the sync part will always retrieve the latest version of a file. To fix this we need to save the list of files we need to a temporary location, then postfix each line with the version we want, then feed that new list back to p4 sync.</p>
<p>But there&#8217;s one final catch. If your filenames are local paths instead of Perforce paths, you cannot specify a label, only revisions. E.g. c:\temp\foo.dat@SOME_LABEL will not work, but c:\temp\foo.dat#999 will. Fortunately we can use the pseudo revision &#8216;have&#8217; for our purposes.</p>
<p><em>@echo off</em></p>
<p><em>REM Could optionally pass these as %1 and %2 from the cmd line<br />
set LABEL=@SOME_LABEL<br />
set BASE_DIR=//depot/path/…</em></p>
<p><em>del p4sync.txt</em></p>
<p><em>echo Setting &#8216;have&#8217; to %LABEL% for %BASE_DIR%<br />
REM do a nop sync that sets our &#8216;have&#8217; version to the label we want<br />
p4 sync -k %BASE_DIR%%LABEL%</em></p>
<p><em>echo Finding modified files..<br />
p4 diff -se %BASE_DIR%%LABEL% &gt; p4diff.txt</em></p>
<p><em>echo Finding missing files..<br />
p4 diff -sd %BASE_DIR%%LABEL% &gt;&gt; p4diff.txt</em></p>
<p><em>echo Building sync commands<br />
REM Append #have to each filename and put them all in a list of files to sync<br />
for /f %%i in (p4diff.txt) Do echo %%i#have&gt;&gt; p4sync.txt</em></p>
<p><em>REM Now sync everything<br />
if exist p4sync.txt (<br />
echo Syncing..<br />
p4 -x p4sync.txt sync -f<br />
)else (<br />
echo It seems no files need updated!<br />
)</em></p>
<p>Voila!</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/syncing-missing-modified-files-to-a-specific-version-in-perforce/">Syncing missing/modified files to a specific version in Perforce</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/syncing-missing-modified-files-to-a-specific-version-in-perforce/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Remove Control ^M from files</title>
		<link>https://www.scmgalaxy.com/tutorials/remove-control-m-from-files/</link>
					<comments>https://www.scmgalaxy.com/tutorials/remove-control-m-from-files/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 12:57:21 +0000</pubDate>
				<category><![CDATA[Perl Script]]></category>
		<category><![CDATA[files]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2523</guid>

					<description><![CDATA[<p>tpatil created the topic: Remove Control ^M from files Single file method perl -pi -e "s/\r//" filename.txt Multiple File Method [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/remove-control-m-from-files/">Remove Control ^M from files</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>tpatil created the topic: Remove Control ^M from files</strong></p>
<p>Single file method</p>
<p><code>perl -pi -e "s/\r//" filename.txt</code></p>
<p>Multiple File Method</p>
<p><code>find . -type f -exec perl -pi -e "s/\r//" {} \;</code></p>
<p><strong>rajeshkumar replied the topic: Re:Remove Control ^M from files</strong><br />
I used to do in shell using following command</p>
<p>> 1,$s/^M//g</p>
<p>Correct me if I am wrong<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <strong>twitter.com/RajeshKumarIn</strong></p>
<p><strong>tpatil replied the topic: Re:Remove Control ^M from files</strong></p>
<p>Yes, this is also correct command if you want to remove ^M from single file in VI edit mode.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/remove-control-m-from-files/">Remove Control ^M from files</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/remove-control-m-from-files/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>RADIA &#8211; HPCAE &#8211; log files grown enormously</title>
		<link>https://www.scmgalaxy.com/tutorials/radia-hpcae-log-files-grown-enormously/</link>
					<comments>https://www.scmgalaxy.com/tutorials/radia-hpcae-log-files-grown-enormously/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sat, 02 Dec 2017 10:05:43 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<category><![CDATA[files]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1085</guid>

					<description><![CDATA[<p>installanywhereExpert created the topic: RADIA &#8211; HPCAE &#8211; log files grown enormously During installation of the agent, log files grow [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/radia-hpcae-log-files-grown-enormously/">RADIA &#8211; HPCAE &#8211; log files grown enormously</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>installanywhereExpert created the topic: RADIA &#8211; HPCAE &#8211; log files grown enormously</strong><br />
During installation of the agent, log files grow very large. Maintenance connect increased up to 7Gb. When radskman.exe was killed the log file stoped its increment but PatchDiscovery.log grows enourmously and it never stop up to 10Gb.</p>
<p>I&#8217;ve already read on other forums that many people implemented Radia before already experienced the huge number of logs file generated, size also are Giga bites. But I&#8217;ve read no explanation why this happens.</p>
<p>Can someone explains to be how this log files grow really large and how to resolve this incident. Thanks everyone in advance.</p>
<p><strong>msiexpert replied the topic: Re: RADIA &#8211; HPCAE &#8211; log files grown enormously</strong><br />
Hi,</p>
<p>Can you check if trace level is increased? check the ZMASTER obejct for trace value</p>
<p>Regards<br />
Vinod</p>
<p><strong>installanywhereExpert replied the topic: Re: RADIA &#8211; HPCAE &#8211; log files grown enormously</strong><br />
Hi,</p>
<p>i&#8217;ve already looked on the zmaster object and no changes takes place. all parameters stays the same. Thanks.</p>
<p><strong>msiexpert replied the topic: Re: RADIA &#8211; HPCAE &#8211; log files grown enormously</strong><br />
Hi ,</p>
<p>you can edit the log files behaviour from the edmprof.dat file related to RCS server.<br />
open the file and go to the log section.</p>
<p>hope this helps you</p>
<p><strong>installanywhereExpert replied the topic: Re: RADIA &#8211; HPCAE &#8211; log files grown enormously</strong><br />
Hi,</p>
<p>While installing the client you can specify the log size in &#8220;install.ini&#8221; file. I think it helps you.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/radia-hpcae-log-files-grown-enormously/">RADIA &#8211; HPCAE &#8211; log files grown enormously</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/radia-hpcae-log-files-grown-enormously/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Batch Script to Login and sync the files from perforce &#124; Step by step guide</title>
		<link>https://www.scmgalaxy.com/tutorials/batch-script-to-login-and-sync-the-files-from-perforce/</link>
					<comments>https://www.scmgalaxy.com/tutorials/batch-script-to-login-and-sync-the-files-from-perforce/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Mon, 12 Jan 2009 11:43:29 +0000</pubDate>
				<category><![CDATA[Batch Scripting]]></category>
		<category><![CDATA[Perforce]]></category>
		<category><![CDATA[Batch Command]]></category>
		<category><![CDATA[Batch File Login]]></category>
		<category><![CDATA[Batch Script]]></category>
		<category><![CDATA[Batch Script to Login Perforce server]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[files]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[How]]></category>
		<category><![CDATA[Login]]></category>
		<category><![CDATA[Perforce server login by using command line]]></category>
		<category><![CDATA[Porcess]]></category>
		<category><![CDATA[Steps]]></category>
		<category><![CDATA[sync]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Ways]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2009/01/12/batch-script-to-login-and-sync-the-files-from-perforce/</guid>

					<description><![CDATA[<p>Batch Script to Login Perforce server using command line Step 1: Create a new text file Step2: Copy following command [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/batch-script-to-login-and-sync-the-files-from-perforce/">Batch Script to Login and sync the files from perforce | Step by step guide</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img fetchpriority="high" decoding="async" class="size-full wp-image-3646 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/01/batch-script-to-login-and-s.png" alt="batch-script-to-login-and-sync-the-files-from-perforce" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/01/batch-script-to-login-and-s.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/01/batch-script-to-login-and-s-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p><strong>Batch Script to Login Perforce server using command line</strong></p>
<p><strong>Step 1: </strong>Create a new text file<br />
<strong>Step2: </strong>Copy following command<br />
%path%<br />
@echo on<br />
p4 -p172.28.16.2:1666 -uUserName -P&#8221;Password&#8221; -c&#8221;Client_Name&#8221; client –o</p>
<p>Where<br />
UserName is User name of perforce server<br />
Password is Password of the perforce server.<br />
Client_Name is the existing perforce client</p>
<p><strong>Step3: </strong>Save with .bat extension</p>
<p><strong>Step4:</strong> Run the batch file</p>
<p><strong>Batch Script to Login and sync the files from perforce view</strong></p>
<p><strong>Step 1: </strong>Create a new text file<br />
<strong>Step2: </strong>Copy following command<br />
@echo off<br />
p4 -c Client_Name -p 172.28.16.2:1666 -u UserName-P Password sync -f //SEABU/LiveStateDelivery/LSDMaintenance/Components/Webadmin/&#8230; //SYSTEMBUILDSTAR/LiveStateDelivery/LSDMaintenance/Components/Webadmin/&#8230;</p>
<p>Where<br />
UserName is User name of perforce server<br />
Password is Password of the perforce server.<br />
Client_Name is the existing perforce client</p>
<p><strong>Step3:</strong> Save with .bat extension</p>
<p><strong>Step4:</strong> Run the batch file</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/batch-script-to-login-and-sync-the-files-from-perforce/">Batch Script to Login and sync the files from perforce | Step by step guide</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/batch-script-to-login-and-sync-the-files-from-perforce/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
