| View previous topic :: View next topic |
| Author |
Message |
ajgreeny LXF regular
Joined: Wed May 10, 2006 9:18 pm Posts: 407 Location: Oxfordshire.
|
Posted: Sun Nov 06, 2011 8:14 pm Post subject: LXF 152 Tip of the Month. |
|
|
I believe there is a misprint in the Tip of the Month on page 75 of the LXF 152 magazine, as I have just spent a while trying to get the tip to work, ie, the "Instant web server" using python.
To start I could not find the character you printed in the command which I show here in red.
python -≠m SimpleHTTPServer 1111
I presume this must be a non-printing character which should not have shown in the magazine, as it does not even appear in the character map on my gnome 2.32 ubuntu 10.04, and I could not reproduce it in any way.
Being a subscriber, I copied the command from the pdf of the magazine and tried that, but that showed an "unknown option -" I then tried the command without the odd character and, BINGO! it worked without a problem.
What a useful facility/utility for quick file viewing (and transfers) around the LAN; just like giver. _________________ Ubuntu 10.04 user, and loving it! |
|
| Back to top |
|
 |
nelz Moderator

Joined: Mon Apr 04, 2005 12:52 pm Posts: 8000 Location: Warrington, UK
|
Posted: Sun Nov 06, 2011 8:30 pm Post subject: |
|
|
You're right, that character shouldn't be there. The correct command is
| Code: | | python -m SimpleHTTPServer 1111 |
_________________ Unix is user-friendly. It's just very selective about who it's friends are. |
|
| Back to top |
|
 |
Spangwiches

Joined: Thu Sep 22, 2011 3:50 am Posts: 77
|
Posted: Sun Nov 06, 2011 10:28 pm Post subject: |
|
|
Just as a note, on newer Pythons (I'm on 3.2.2, I don't know when it changed though) it's:
python -m http.server _________________ http://uoou.info/ |
|
| Back to top |
|
 |
ajgreeny LXF regular
Joined: Wed May 10, 2006 9:18 pm Posts: 407 Location: Oxfordshire.
|
Posted: Sun Nov 06, 2011 10:36 pm Post subject: |
|
|
| nelz wrote: | You're right, that character shouldn't be there. The correct command is
| Code: | | python -m SimpleHTTPServer 1111 |
|
For some strange reason, nelz, when copying your command into terminal by using select/middle click, an extra space is added between the "-" and "m".
Very odd! It doesn't show in your forum entry. _________________ Ubuntu 10.04 user, and loving it! |
|
| Back to top |
|
 |
nelz Moderator

Joined: Mon Apr 04, 2005 12:52 pm Posts: 8000 Location: Warrington, UK
|
Posted: Sun Nov 06, 2011 11:37 pm Post subject: |
|
|
I pasted that from the text file I sent in (I wrote that tip) and watching the character counter in Kate, there is an invisible character between the - and m. _________________ Unix is user-friendly. It's just very selective about who it's friends are. |
|
| Back to top |
|
 |
ajgreeny LXF regular
Joined: Wed May 10, 2006 9:18 pm Posts: 407 Location: Oxfordshire.
|
Posted: Mon Nov 07, 2011 10:34 am Post subject: |
|
|
Fair enough.
I won't ask why, I will just nod my head and slowly back away. _________________ Ubuntu 10.04 user, and loving it! |
|
| Back to top |
|
 |
nelz Moderator

Joined: Mon Apr 04, 2005 12:52 pm Posts: 8000 Location: Warrington, UK
|
Posted: Mon Nov 07, 2011 10:46 am Post subject: |
|
|
It's a non-typing character, 0xAD, so I didn't put it there. It probably got picked up in a cut and paste. _________________ Unix is user-friendly. It's just very selective about who it's friends are. |
|
| Back to top |
|
 |
Arno
Joined: Mon Nov 07, 2011 9:33 pm Posts: 2
|
Posted: Mon Nov 07, 2011 9:40 pm Post subject: a software like Giver |
|
|
| If you want a software like Giver, you can try Transfer on LAN ( http://code.google.com/p/transfer-on-lan/ ). It's cross-platform, open source an requires no configuration. |
|
| Back to top |
|
 |
nelz Moderator

Joined: Mon Apr 04, 2005 12:52 pm Posts: 8000 Location: Warrington, UK
|
Posted: Mon Nov 07, 2011 10:07 pm Post subject: |
|
|
The point about the tip is that it not only needs no configuration, it needs no installation either because distros come with Python as standard.
That's not to say that Transfer-on-LAN couldn't be useful, it looks like it could, but this is a tip for a quick to set up file transfer without needing to install or set up anything - just one command. However, it does work better with the command correctly typed  _________________ Unix is user-friendly. It's just very selective about who it's friends are. |
|
| Back to top |
|
 |
Arno
Joined: Mon Nov 07, 2011 9:33 pm Posts: 2
|
Posted: Mon Nov 07, 2011 10:43 pm Post subject: |
|
|
OK. But, I just tried to answer the ajgreeny's question about Giver :
| Quote: | | What a useful facility/utility for quick file viewing (and transfers) around the LAN; just like giver. |
|
|
| Back to top |
|
 |
nelz Moderator

Joined: Mon Apr 04, 2005 12:52 pm Posts: 8000 Location: Warrington, UK
|
Posted: Tue Nov 08, 2011 1:05 am Post subject: |
|
|
Of course, and it does look useful. _________________ Unix is user-friendly. It's just very selective about who it's friends are. |
|
| Back to top |
|
 |
ajgreeny LXF regular
Joined: Wed May 10, 2006 9:18 pm Posts: 407 Location: Oxfordshire.
|
Posted: Tue Nov 15, 2011 12:01 pm Post subject: Re: a software like Giver |
|
|
Thanks very much for that link Arno. I have just installed TOL on my machine, made a launcher for it in the Internet menu section (Ubuntu 10.04), and I have to say, it looks really great at the moment. I will play with it a for a while and see if it lives up to its first viewing promise. _________________ Ubuntu 10.04 user, and loving it! |
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|