PDA

View Full Version : 2 questions


ColdDoT
28th March 2006, 21:08
hello

first of all i'm running debian sarge. when is save a file from windows trough ftp on my linux box (or i just use vi with ssh)

my files look all like

#!/usr/bin/perl^M
^M
^M
%COLOR = (^M
'n_1' => "<FONT COLOR=\"#FF0000\">", ## kleur-code nr.1 voor namen en teksten^M
'n_2' => "<FONT COLOR=\"yellow\">", ## kleur-code nr.2 voor namen en teksten^M
'<>' => "<FONT COLOR=\"#00FFFF\">",^M
'-' => "<FONT COLOR=\"#FFFFFF\">",^M
);^M
^M
(small pice of a pl program)

what are that ^M. because that my perl and cgi programms give a server error when i leav that in the line #!/usr/bin/perl^M. and is there a way to solve it.

second i've running a pure-ftpd server and when i go to my server ftp.colddot.nl i get a welcom screen but i don't wanna have that i wanna have a direct inlog screen(this i have don trough internet explore)

greets colddot
ss
i get this
http://www.colddot.nl/1.jpg

and i want this pleaz
http://www.colddot.nl/2.jpg

falko
29th March 2006, 15:13
hello

first of all i'm running debian sarge. when is save a file from windows trough ftp on my linux box (or i just use vi with ssh)

my files look all like

#!/usr/bin/perl^M
^M
^M
%COLOR = (^M
'n_1' => "<FONT COLOR=\"#FF0000\">", ## kleur-code nr.1 voor namen en teksten^M
'n_2' => "<FONT COLOR=\"yellow\">", ## kleur-code nr.2 voor namen en teksten^M
'<>' => "<FONT COLOR=\"#00FFFF\">",^M
'-' => "<FONT COLOR=\"#FFFFFF\">",^M
);^M
^M
(small pice of a pl program)

what are that ^M. because that my perl and cgi programms give a server error when i leav that in the line #!/usr/bin/perl^M. and is there a way to solve it.
This means you have saved the file with Windows linebreaks. You must save them with Unix linebreaks!

second i've running a pure-ftpd server and when i go to my server ftp.colddot.nl i get a welcom screen but i don't wanna have that i wanna have a direct inlog screen(this i have don trough internet explore)


I recommend to use an FTP client like smartFTP instead of the Internet Explorer.

ColdDoT
29th March 2006, 16:15
This means you have saved the file with Windows linebreaks. You must save them with Unix linebreaks!


is there any program what do the job for me.

thx men

edge
29th March 2006, 19:54
is there any program what do the job for me.

thx men


UltraEdit-32 will do both (Unix linebreaks, and FTP)
More info @ http://www.ultraedit.com/index.php?name=Content&pa=showpage&pid=1

falko
29th March 2006, 20:45
You could also use Weaverslave: http://www.weaverslave.ws/