linex,
First of all, calm down. I do not believe that anyone here is being aggressive towards you. If you have not already done so, please read the PerlMonks FAQ.
Secondly:
"I can no install anything that not related to my job."
It seems to me that Perl is related to your job. Unless I have missed something your task (I assume a work related one) is to have Perl code that performs a task. I do not believe that it is unreasonable to expect your employers to allow you to install the tools to do the job (coding and testing said code before uploading to your host). Check out ActiveState.com, ActivePerl is free, so there is no need to worry about paying for it.
Hope this helps.
Martin | [reply] |
Assuming this is Windows: You don't need to install Perl on your machine. Perl works perfectly fine if you try to run it directly from a CD-ROM. You will then have to use command lines like
perl yourscript.pl params for perl
Commonly, you have to use the absolute path for the executable in the command line. Or, you might temporarily add the path to perl to your PATH environment variable. Yes you can do that from the command line... | [reply] [d/l] |
well, I uploaded and run script on normal hosting. Not work, here is errors log:
failed to open log file
fopen: Permission denied
[Wed Apr 5 10:27:59 2006] [error] [client IP] Premature end of script
+ headers: /hsphere/local/home/domain/domain.com/cgi-bin/bmailer.cgi
failed to open log file
fopen: Permission denied
[Wed Apr 5 10:28:04 2006] [error] [client IP] Premature end of script
+ headers: /hsphere/local/home/domain/domain.com/cgi-bin/bmailer.cgi
failed to open log file
fopen: Permission denied
[Wed Apr 5 10:28:07 2006] [error] [client IP] Premature end of script
+ headers: /hsphere/local/home/domain/domain.com/cgi-bin/bmailer.cgi
failed to open log file
fopen: Permission denied
[Wed Apr 5 10:28:16 2006] [error] [client IP] Premature end of script
+ headers: /hsphere/local/home/domain/domain.com/cgi-bin/bmailer.cgi
So, dont know what is wrong in code if can no run even on normal hosting. | [reply] [d/l] |
It looks to me like all your errors listed here, are produced by not having the permission to open the log file. You'd have to set the file's permissions to writable for all. If you can't touch it where it is supposed to be, use a location of your own choice, for example in your home directory or in a dedicated subdirectory, and set the permissions accordingly. If the directory doesn't allow you to create a file, and it's unwise to allow it, make an empty file by hand with the proper name, set its permissions, and try again.
| [reply] |
Is this non installing Perl on a machine a crime?
No, it isn't. But the only sane thing to do.
Its a working machine, and its not mine, I do not own this machine, I can no install anything that not related to my job.
Maybe you could have mentioned this a bit earlier.
So I just I intended ask small specific help.
You're asking for a trivial syntax error. On a typical coding day I make (and correct) way over 100 syntax errors. Imagine I (and others) would post them all.
I never saw such aggressive help
Nobody is aggressive here. It's just we already have a bunch of monks who don't listen to what they have been told. Do you want to be among them?
| [reply] |
Is this non installing Perl on a machine a crime?
No, it isn't, at least in most countries I know of - to me, it's an essential part of doing your job.
Its a working machine, and its not mine, I do not own this machine, I can no install anything that not related to my job.
And this is only PC where I can test something, upload script, etc
Well, you would need to be logged on as an Administrator, i.e. be in the Administrators group, to do so. If you try to install it and it doesn't work, it may be very possible that you don't have administrative priveleges. I think I know where your employer is coming from - that they want to make sure that their network is secure and free from spyware, viruses and things like that, but Perl doesn't have those kinds of things.
So I just I intended ask small specific help. However, I do not expected that some Perlers are so aggressive, if not even more.. I do not know why. I never saw such aggressive help in other forums or newsgrops..
I don't know if it's so much that it's aggressive, but that having the right tools to do your job, and in this case to see what's wrong with your script, is crucial.
| [reply] |