Re: I can't write the apropriate content to the file.

2007-06-08 Thread Martin Barth
try to change the shebang to #!/bin/sh first of all: you shouldn't use the backticks `` if you dont want to have the output of the program. 2nd: don't use touch, chmod, etc... there are many ways to do it much faster in perl. everytime you do somethink like that you invoke a fork() and start a ne

I can't write the apropriate content to the file.

2007-06-08 Thread herostar1981
Hi everybody, I have a perl script, which can write some message to a new file, looks like the following. my $cmd="touch /data3/OGCserver-xu/htdocs/tmp/$time".".kml"; `$cmd`;#`touch ../../htdocs/tmp/xuhuanxiang.kml`; `chmod 777 /data3/OGCserver-xu/htdocs/tmp/$time.kml`; open (XHX,">","/data3/OG