Hi, http://www.pragma-ade.com/general/manuals/mtexsync-p.pdf.pdf http://www.pragma-ade.com/general/manuals/mtexsync-s.pdf.pdf Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
Hans, Too many pdf's in the link. At 04:58 PM 12/18/03 +0100, you wrote:
Hi,
http://www.pragma-ade.com/general/manuals/mtexsync-p.pdf.pdf http://www.pragma-ade.com/general/manuals/mtexsync-s.pdf.pdf
Hans
------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Hans, I have read this manual. Downloaded texsync.rb and put it into my personal bin location. I have ruby. I have made texsync.rb executable chmod +x texsync.rb. The commands still don't quite work as required - any hints. Terminal listing ---------------- [Nigel-Kings-G4-Lap:~/bin] nigelk% which ruby /usr/bin/ruby [Nigel-Kings-G4-Lap:~/bin] nigelk% ruby --version ruby 1.6.7 (2002-03-01) [powerpc-darwin6.0] [Nigel-Kings-G4-Lap:~/bin] nigelk% texsync --update texsync: Command not found. [Nigel-Kings-G4-Lap:~/bin] nigelk% texsync.rb --update Running /Users/nigelk/.cshrc : Command not found. require: Command not found. : Command not found. print: Command not found. : Command not found. directives: Command not found. helpinfo: Command not found. default: Too many arguments. ---------------- So what am I doing wrong? -- Nigel
From: Hans Hagen
Subject: [NTG-context] new manual Hi,
http://www.pragma-ade.com/general/manuals/mtexsync-p.pdf.pdf http://www.pragma-ade.com/general/manuals/mtexsync-s.pdf.pdf
Hans
At 13:18 23/12/2003, you wrote:
Hans, I have read this manual. Downloaded texsync.rb and put it into my personal bin location. I have ruby. I have made texsync.rb executable chmod +x texsync.rb. The commands still don't quite work as required - any hints.
Terminal listing ---------------- [Nigel-Kings-G4-Lap:~/bin] nigelk% which ruby /usr/bin/ruby [Nigel-Kings-G4-Lap:~/bin] nigelk% ruby --version ruby 1.6.7 (2002-03-01) [powerpc-darwin6.0] [Nigel-Kings-G4-Lap:~/bin] nigelk% texsync --update texsync: Command not found. [Nigel-Kings-G4-Lap:~/bin] nigelk% texsync.rb --update Running /Users/nigelk/.cshrc : Command not found. require: Command not found. : Command not found. print: Command not found. : Command not found. directives: Command not found. helpinfo: Command not found. default: Too many arguments. ---------------- So what am I doing wrong?
can you try ruby texsync.rb Hans
Hans ruby texsync.rb --update --tree=doc --force --destination=/Users/Shared/Context/ Gets me the manuals I think on UNIX the first line of the script should look like #!/usr/bin/ruby However I tried this and then [Nigel-Kings-G4-Lap:~/bin] nigelk% texsync.rb texsync.rb: Command not found. I am not sure what is reporting this because texsync.rb is executeable and is in the path and anyway I am in that directory. Confused -- Nigel
From: Hans Hagen
Reply-To: ntg-context@ntg.nl Date: Tue, 23 Dec 2003 13:39:37 +0100 To: ntg-context@ntg.nl Subject: Re: [NTG-context] new manual At 13:18 23/12/2003, you wrote:
Hans, I have read this manual. Downloaded texsync.rb and put it into my personal bin location. I have ruby. I have made texsync.rb executable chmod +x texsync.rb. The commands still don't quite work as required - any hints.
Terminal listing ---------------- [Nigel-Kings-G4-Lap:~/bin] nigelk% which ruby /usr/bin/ruby [Nigel-Kings-G4-Lap:~/bin] nigelk% ruby --version ruby 1.6.7 (2002-03-01) [powerpc-darwin6.0] [Nigel-Kings-G4-Lap:~/bin] nigelk% texsync --update texsync: Command not found. [Nigel-Kings-G4-Lap:~/bin] nigelk% texsync.rb --update Running /Users/nigelk/.cshrc : Command not found. require: Command not found. : Command not found. print: Command not found. : Command not found. directives: Command not found. helpinfo: Command not found. default: Too many arguments. ---------------- So what am I doing wrong?
can you try
ruby texsync.rb
Hans
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
At 14:16 23/12/2003, you wrote:
Hans ruby texsync.rb --update --tree=doc --force --destination=/Users/Shared/Context/
Gets me the manuals
I think on UNIX the first line of the script should look like #!/usr/bin/ruby
However I tried this and then [Nigel-Kings-G4-Lap:~/bin] nigelk% texsync.rb texsync.rb: Command not found.
I am not sure what is reporting this because texsync.rb is executeable and is in the path and anyway I am in that directory.
Confused
one option is to make a file texsync with in it the line ruby texmxstart.rb texsync.rb
On Tue, 23 Dec 2003 13:16:58 +0000
Nigel King
Hans ruby texsync.rb --update --tree=doc --force --destination=/Users/Shared/Context/
Gets me the manuals
I think on UNIX the first line of the script should look like #!/usr/bin/ruby
Ab better way for most normal unices is to use #!/usr/bin/env ruby But that does not seem to be your problem
However I tried this and then [Nigel-Kings-G4-Lap:~/bin] nigelk% texsync.rb texsync.rb: Command not found.
Here is the question if the local directory is part of your path To run commands savely from a local directory use ./texsync.rb HTH, __Janko
Hi Nigel, you can start the script as a parameter to ruby: bash-2.05a$ ruby texsync.rb --update --force --destination=/tmp/textest or you add a line to texsync.rb (has to be the first line) to tell your unix which interpreter to run: #!/usr/bin/ruby then you can start it simply with: bash-2.05a$ texsync.rb --update --force --destination=/tmp/textest Hope this helps, felix Nigel King wrote:
Hans, I have read this manual. Downloaded texsync.rb and put it into my personal bin location. I have ruby. I have made texsync.rb executable chmod +x texsync.rb. The commands still don't quite work as required - any hints.
Terminal listing ---------------- [Nigel-Kings-G4-Lap:~/bin] nigelk% which ruby /usr/bin/ruby [Nigel-Kings-G4-Lap:~/bin] nigelk% ruby --version ruby 1.6.7 (2002-03-01) [powerpc-darwin6.0] [Nigel-Kings-G4-Lap:~/bin] nigelk% texsync --update texsync: Command not found. [Nigel-Kings-G4-Lap:~/bin] nigelk% texsync.rb --update Running /Users/nigelk/.cshrc : Command not found. require: Command not found. : Command not found. print: Command not found. : Command not found. directives: Command not found. helpinfo: Command not found. default: Too many arguments. ---------------- So what am I doing wrong?
Hello, On Tue, Dec 23, 2003 at 12:18:26PM +0000, Nigel King wrote:
[Nigel-Kings-G4-Lap:~/bin] nigelk% texsync.rb --update Running /Users/nigelk/.cshrc : Command not found.
So what am I doing wrong? Nothing, but ... The problem is that the shbang line (#!/usr/bin/ruby) doesn't work if you have a "\r\n" instead of "\n".
Try `dos2unix texsync.rb` then it should work. Regards and a merry christmas, Tobias
participants (6)
-
David Arnold
-
Felix Franz
-
Hans Hagen
-
Janko Hauser
-
Nigel King
-
Tobias Burnus