On Wed, 13 Jul 2011 22:55:24 +, Stefan Sperling wrote:
...
> Try setting the environment variable in your crontab instead.
> Put this in your crontab:
>
> LC_ALL=en_US.UTF-8
> * * * * * /root/test >> /var/log/test.log 2>&1
>
> I think that should work. Most cron programs support setting e
Thanks a lot! It works. The program can execute svn commands and no error
comes out.
On Thu, Jul 14, 2011 at 4:55 AM, Stefan Sperling wrote:
> On Wed, Jul 13, 2011 at 11:05:34PM +0800, 温德鑫 wrote:
> > HI,all:
> > I wrote a file like this: test.c
> > #include
> > #include
> > #include
> > i
On Wed, Jul 13, 2011 at 11:05:34PM +0800, 温德鑫 wrote:
> HI,all:
> I wrote a file like this: test.c
> #include
> #include
> #include
> int main()
> {
>FILE *fpipe;
>char *command="cd /data/cdc/document/;/usr/bin/svn status 73/2788
> --config-dir /home/svnroot/.subversion 2>&1";
>ch
HI,all:
I wrote a file like this: test.c
#include
#include
#include
int main()
{
FILE *fpipe;
char *command="cd /data/cdc/document/;/usr/bin/svn status 73/2788
--config-dir /home/svnroot/.subversion 2>&1";
char line[256];
if ( !(fpipe = (FILE*)popen(command,"r")) )
{ // If fpipe