Home Page   #c  #ruby-lang  #cisco  #mysql  #apache  #javascript  #java  #perl  #php  #openmoko   Wallpapers Girl
Reliable $1 Web Hosting by 3iX

Channels


#perl

08 October 2007


Total 42 pages. You are browsing page 5/42.

First :: Prev :: [...] [3] [4] [5] [6] [7] [...] :: Next :: Last

02:49 <****> missing the shebang maybe
02:49 <****> that or it's not pointing to where perl is
02:50 <****> jagerman, er, it very well could be 755. :)
02:50 <****> Oh. Misunderstood.
02:50 <****>newscript.pl && chmod 755 newscript.pl && ./newscript.pl
02:51 <****> bsdbandit, Run those commands jagerman has provided. What do you get?
02:51 <****> (note, cd to a directory where you have write access first)
02:51 <****> i get hello
02:51 * jagerman hopes -e isn't a gnu echo feature
02:51 <****> hehehe
02:51 <****> didn't call it with ./ ?
02:51 <****> when i ran ./newscript
02:51 <****> i got hello
02:51 <****> bsdbandit, Good.
02:51 <****> head -n1 hello | od -a
02:51 <****> hello or Hello?
02:52 <****> what did i do wrong
02:52 <****> now run ./hello
02:52 <****> bsdbandit, We're trying to determine that.
02:52 <****> when i run ./hello i get ./hello: line 4: print: command not found
02:52 <****> argh
02:52 <****> it's being run by the shell..
02:52 <****> missing shebang
02:52 <****> That means your shell is interpreting it.
02:52 <****> run 'perl hello'
02:52 <****> od is a cute little tool
02:53 <****> iank, We've verified that works.
02:53 <****> iank: why again?
02:53 <****> oh
02:53 <****> Didn't read scrollback
02:53 <****> Bad iank! No cookie!
02:53 <****> s'ok, just ate pizza
02:53 * jagerman installs a cookie in iank's browser anyway.
02:53 <****> bsdbandit, Can you paste the output of mauke's od command?
02:53 <****> yay
02:53 <****> This cookie will spy on you and steal all your credit card info!
02:54 <****> i get 0000000 nl
02:54 <****> i get 0000001
02:54 <****> Pastebot.
02:54 <****> surprise, an empty line.
02:54 <****> Sorry, should have been clearer.
02:54 <****> apeiron: two lines are ok here
02:54 <****> shebang line needs to be the /first/ line.
02:54 <****> mauke, I meant more for "the whole thing" if he was going to continue.
02:55 <****> that is the whole thing :-)
02:55 <****> bsdbandit: Looks like you have an empty first line
02:55 <****> ok
02:55 <****> how can i fix this
02:55 <****> Delete the empty first line
02:55 <****> get a text editor
02:55 <****> uh...
02:55 <****> im using vi
02:55 <****> lern2vi
02:55 <****> Be more careful, then. :)
02:56 <****> Go to the first line and hit dd, or switch to an editor you are comfortable with
02:56 <****> its works
02:56 <****> thank you guys so much
02:56 <****> i was missing a line
02:56 <****> Actually, the problem was the opposite.
02:56 <****> What we've witnessed indicates... yeah.
02:57 <****> i just want to say thank you
02:57 <****> well im going off to start reading learning perl
02:57 <****> perlbot, thanks
02:57 <****> If you want to thank us, help out the perl community by sending some money (even if just a couple of dollars) to The Perl Foundation. http://donate.perlfoundation.org/
02:57 <****> ... or to jagerman
02:58 <****> is there a way to check which perl modules are installed on a webserver using mod_perl whithout anything like `find', etc...?
02:59 <****> use File::Find, etc.
02:59 <****> there should be one more way to do it ;)
02:59 <****> Maybe `locate '*.pm'`
03:00 <****> noganex_: Module::Find is good
03:00 <****> (Module::Find)++
03:00 <****> seems like Module::Find isn't installed on the webserver :(
03:00 <****> noganex_, So install it.
03:01 <****> apeiron: got no shell.
03:01 <****> free webhosting shit thingy
03:01 <****> Those kinds of things don't do well with Perl. You may be able to set up your own PERL5LIB, though.
03:02 <****> There's also a CGI interface to CPAN that lets you install stuff via a Web interface.
03:02 <****> Here's hoping they didn't decide to eschew a C compiler from their setup.
03:02 <****> you could write a cgi to give yourself a shell :)
03:03 <****> Caelum, Heh, true. :)
03:03 <****> i think i should just move the stuff from my mate to my server.
03:13 * CPAN upload: Apache-SimpleTemplate-0.06 (+++++) by FORTY
03:13 * CPAN upload: Apache-SimpleTemplate-0.06b (+++++) by FORTY
03:26 <****> Zoffix.
03:27 <****> dwu, !
03:27 <****> dwu, http://haslayout.net how's my new layout lookin' ? :)
03:28 <****> Zoffix: I've not seen the -old- one, but it's very... minty.
03:28 * CPAN upload: Bot-Net-0.0.1 by HANENKAMP
03:28 <****> dwu, you can see the old one if you go to http://haslayout.net/pref and select "Plain" as the "Page Style"
03:28 <****> Zoffix: mmkay.
03:28 <****> perlbot, dwu
03:28 <****> #perl channel strumpet
03:29 <****> Zoffix: I... like the old one better. The new one seems a mite right-aligned.
03:30 <****> It is right aligned :P~
03:30 <****> it is very broken in konqueror
03:30 <****> Somni, old or new?
03:30 <****> If I do it centered people will be saying "Zomg! It looks like blog entries!!" .. so for everyone who doesn't like the style there is a "Custom stylesheet URI:" field :P
03:30 * Zoffix checks
03:30 <****> old or new what?
03:31 <****> Somni, the style.. nevermind, I am guessing the new one since it's the default


Total 42 pages. You are browsing page 5/42.

First :: Prev :: [...] [3] [4] [5] [6] [7] [...] :: Next :: Last


Tutti i nuovi CAP Italiani. Come ottenere il database completo