Discussion:
opening of 2 files with nc
Schweikart, Matthias
2009-05-18 08:59:41 UTC
Permalink
Hello,
I am working with a tool which uses nc to display textfiles.
In some cases this tool tries to display 2 files simultaneously and creates 2 independent, asynchronous nc -commands.
This leads to the situation that
sometimes both files are openend in one Nedit-Window (in different tabs) or
sometimes only one file is opened and an additional empty Nedit-Windows opens (using a new Nedit-server)
sometimes only one file is opened
It seems to me that during the Nedit-server is handling the first file, it is not able to react to the second call.

Does anybody know how to solve this problem?
Thanks for your help
Bye,
Matthias

P.S.:
I am using
NEdit 5.5
Sep 30, 2004

Built on: Linux, 386, GNU C
Built at: Oct 1 2004, 15:55:40
With Motif: 2.1.30 [@(#)Motif Version 2.1.30]
Running Motif: 2.1 [unknown]
Server: Hummingbird Ltd. 12000
Visual: 24-bit TrueColor (ID 0x24, Default)
Locale: C

The operating system is
Red Hat Enterprise Linux Client release 5.3 (Tikanga)



Siemens AG
Industry Sector
Industry Automation Division
Advanced Technologies & Standards
I IA&DT ATS 22
Gleiwitzer Str. 555
90475 Nürnberg, Deutschland
Tel.: +49 (911) 895-3027
Fax: +49 (911) 895-3762
mailto:matthias.schweikart-***@public.gmane.org

Siemens Aktiengesellschaft: Vorsitzender des Aufsichtsrats: Gerhard Cromme; Vorstand: Peter Löscher, Vorsitzender; Wolfgang Dehen, Heinrich Hiesinger, Joe Kaeser, Barbara Kux, Hermann Requardt, Siegfried Russwurm, Peter Y. Solmssen; Sitz der Gesellschaft: Berlin und München, Deutschland; Registergericht: Berlin Charlottenburg, HRB 12300, München, HRB 6684; WEEE-Reg.-Nr. DE 23691322
--
NEdit Discuss mailing list - Discuss-***@public.gmane.org
http://www.nedit.org/mailman/listinfo/discuss
Offer Kaye
2009-05-22 16:20:12 UTC
Permalink
On Mon, May 18, 2009 at 11:59 AM, Schweikart, Matthias
Post by Schweikart, Matthias
Hello,
I am working with a tool which uses nc to display textfiles.
In some cases this tool tries to display 2 files simultaneously
Maybe add a "sleep 1;" command before the 2nd nc command?
--
Offer Kaye
--
NEdit Discuss mailing list - Discuss-***@public.gmane.org
http://www.nedit.org/mailman/listinfo/discuss
intertwingled
2009-05-22 16:26:04 UTC
Permalink
Isn't nc also netcat?

Tony
Post by Offer Kaye
On Mon, May 18, 2009 at 11:59 AM, Schweikart, Matthias
Post by Schweikart, Matthias
Hello,
I am working with a tool which uses nc to display textfiles.
In some cases this tool tries to display 2 files simultaneously
Maybe add a "sleep 1;" command before the 2nd nc command?
--
I always have coffee when I watch radar!
--
NEdit Discuss mailing list - Discuss-***@public.gmane.org
http://www.nedit.org/mailman/listinfo/discuss
Erik de Castro Lopo
2009-05-22 21:44:20 UTC
Permalink
Post by intertwingled
Isn't nc also netcat?
On debian derived distributions nc is renamed to nedit-nc.

Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
--
NEdit Discuss mailing list - Discuss-***@public.gmane.org
http://www.nedit.org/mailman/listinfo/discuss
Thomas Orgis
2009-05-23 08:24:06 UTC
Permalink
Am Sat, 23 May 2009 07:44:20 +1000
Post by Erik de Castro Lopo
Post by intertwingled
Isn't nc also netcat?
On debian derived distributions nc is renamed to nedit-nc.
On Source Mage it's ncl ... I named it that way after reading up nedit docs and took the recommendation.
Seems like others didn't bother reading... nedit-nc is really not handy.


Alrighty then,

Thomas.
Schweikart, Matthias
2009-05-25 09:09:40 UTC
Permalink
Hello,
thanks for your answer, but this doesn't work, because the tool by
itself generates the 2 nc commands.
Actually I'm trying to solve the problem by using a named pipe which
should change the 2 asynchronous nc calls to 2 synchronous nc calls.

Bye,
Matthias

Siemens AG
Industry Sector
Industry Automation Division
Advanced Technologies & Standards
I IA&DT ATS 22
Gleiwitzer Str. 555
90475 Nürnberg, Deutschland
Tel.: +49 (911) 895-3027
Fax: +49 (911) 895-3762
mailto:matthias.schweikart-***@public.gmane.org


Siemens Aktiengesellschaft: Vorsitzender des Aufsichtsrats: Gerhard Cromme; Vorstand: Peter Löscher, Vorsitzender; Wolfgang Dehen, Heinrich Hiesinger, Joe Kaeser, Barbara Kux, Hermann Requardt, Siegfried Russwurm, Peter Y. Solmssen; Sitz der Gesellschaft: Berlin und München, Deutschland; Registergericht: Berlin Charlottenburg, HRB 12300, München, HRB 6684; WEEE-Reg.-Nr. DE 23691322


-----Ursprüngliche Nachricht-----
Von: discuss-bounces-***@public.gmane.org [mailto:discuss-bounces-***@public.gmane.org] Im Auftrag von Offer Kaye
Gesendet: Freitag, 22. Mai 2009 18:20
An: General NEdit discussion list
Betreff: Re: opening of 2 files with nc

On Mon, May 18, 2009 at 11:59 AM, Schweikart, Matthias
Post by Schweikart, Matthias
Hello,
I am working with a tool which uses nc to display textfiles.
In some cases this tool tries to display 2 files simultaneously
Maybe add a "sleep 1;" command before the 2nd nc command?
--
Offer Kaye
--
NEdit Discuss mailing list - Discuss-***@public.gmane.org
http://www.nedit.org/mailman/listinfo/discuss
--
NEdit Discuss mailing list - Discuss-***@public.gmane.org
http://www.nedit.org/mailman/listinfo/discuss
Loading...