SVK synk and scheduled task

I'm trying to automate a SVK sync process. After configuring SVK mirrors, I wrote a batch file with the following

svk sync -a >> svk.log &2>1

then I add a Windows Scheduled task running under my administrative account.

in svk.log I read

The getpwuid function is unimplemented at C:\Programmi\svk\bin\svk line 142.

Any hint?

p.s. I'm able to run svn sync -a from the command line (same user)


When I posted my question, I did not know that

  1. under Windows Scheduler the HOMEDRIVE and HOMEPATH aren't initialized (
  2. The getpwuid function is not available in Windows ports of Perl (

Having the above, I modified /bin/svk file by changing

$ENV{HOME} ||= (
    $ENV{HOMEDRIVE} ? catdir(@ENV{qw( HOMEDRIVE HOMEPATH )}) : ''
) || (getpwuid($<))[7];
$ENV{USER} ||= (
    (defined &Win32::LoginName) ? Win32::LoginName() : ''
) || $ENV{USERNAME} || (getpwuid($<))[0];


$ENV{HOME} ||= (
                      ($ENV{USERPROFILE} ? $ENV{USERPROFILE} : '')
$ENV{USER} ||= (
    (defined &Win32::LoginName) ? Win32::LoginName() : ''

and now I'm able to run my batch calling svk as a Windows scheduled task

Need Your Help

algorithm for finding all substrings from a specific alphabet in a string in O(m+n) time

string algorithm pattern-matching

Given a string S . Find all maximal substrings that contains chars from alphabet A in O(|S|+|A|) time. "Maixmal susbstring" is a substring of S, surrounded by chars that are not in alphabet A, or s...

null or empty string comparison in java? or Something else?

java string boolean string-comparison

if(txtValueUIT.getText()==null || txtValueDolar.getText()==null || txtValueUIT.equals("") || txtValueDolar.equals(""))

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.