<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[LPR befehl fehlerhaft]]></title><description><![CDATA[<p>Hallo erstmal, einige von euch werden den Quellcode kennen es ist ein Programm das mehrere Files auf einen Drucker via. LPR schickt</p>
<pre><code>#include &lt;iostream&gt;
#include &lt;conio.h&gt;
#include &lt;string&gt;
#include &lt;vector&gt;
#include &lt;process.h&gt;

using namespace std;

vector &lt;string&gt; parametervector;
string Druckername;
string Servername = &quot;10.4.4.4&quot;;;

// Hier zur Leichteren Auswahl des Druckers
void druckerauswahl()
{
    string welcherdrucker = &quot;1&quot;; // 1 für PS_1, 2 PS_2

    if (welcherdrucker == &quot;1&quot;)
    {
    Druckername = &quot;PS_1&quot;;
    }
    if (welcherdrucker == &quot;2&quot;)
    {
    Druckername = &quot;PS_2&quot;;
    }
}

void lpr()
{
     int antzahl = parametervector.size();
     string lpr_befehl;
     string move_ordner = &quot;D:\\schwabenpost\\Archiv&quot;;
     string move_befehl;

     for(int i=0; i&lt;antzahl; i++)
     {
     lpr_befehl = &quot;lpr -S &quot; + Servername + &quot; -P &quot; + Druckername + &quot; -d &quot; + &quot;\&quot;&quot; + parametervector[i]+ &quot;\&quot;&quot;;
     move_befehl = &quot;move \&quot;&quot; +  parametervector[i] + &quot;\&quot; &quot; + &quot;\&quot;&quot; + move_ordner + &quot;\&quot;&quot;;

     cout &lt;&lt; &quot;Drucke:   &quot; &lt;&lt; &quot;\&quot;&quot; &lt;&lt; parametervector[i] &lt;&lt; &quot;\&quot;\n&quot;;

         if(system(lpr_befehl.c_str())==0)
         {              
         system(move_befehl.c_str());                           
         } 
     }
}

int main (int argc, char* argv[])
{
    int zaehler = 1;
    while (zaehler &lt; argc)
    {
    parametervector.push_back(argv[zaehler]);
    zaehler++;
    }

    if(argc == 1)
    {
    cout &lt;&lt; &quot;Es wurden keine Parameter mitgegeben - Programm Ende&quot; &lt;&lt; endl;
    getch();
    exit (-1);
    }

    druckerauswahl();

    lpr();

	return 0;
}
</code></pre>
<p>Meine Frage ist Simpel. Ich scicke 30 Dateien auf den Drucker</p>
<p>Der LPR befehl macht immer genau 11 danach macht er eine minute nichts<br />
dann wieder 11 dann wieder eine minuten nichts</p>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /></p>
<p>ist das normal ???</p>
<p>Also ich habe auch shcon versucht im dos schell shnell hintereinander einfach mal 30 lpr befehle aufzurufen und da bleibt der auch bei 11 stehen für ne weile bevor der weiter macht</p>
<p>kann mir da wer helfen ? is dieser befehl so buggy ?</p>
<p>oder sendet mein drucker da vielecith stop zurück oder so</p>
<p>need help</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/192821/lpr-befehl-fehlerhaft</link><generator>RSS for Node</generator><lastBuildDate>Tue, 30 Jun 2026 18:47:48 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/192821.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 19 Sep 2007 06:56:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to LPR befehl fehlerhaft on Wed, 19 Sep 2007 06:56:58 GMT]]></title><description><![CDATA[<p>Hallo erstmal, einige von euch werden den Quellcode kennen es ist ein Programm das mehrere Files auf einen Drucker via. LPR schickt</p>
<pre><code>#include &lt;iostream&gt;
#include &lt;conio.h&gt;
#include &lt;string&gt;
#include &lt;vector&gt;
#include &lt;process.h&gt;

using namespace std;

vector &lt;string&gt; parametervector;
string Druckername;
string Servername = &quot;10.4.4.4&quot;;;

// Hier zur Leichteren Auswahl des Druckers
void druckerauswahl()
{
    string welcherdrucker = &quot;1&quot;; // 1 für PS_1, 2 PS_2

    if (welcherdrucker == &quot;1&quot;)
    {
    Druckername = &quot;PS_1&quot;;
    }
    if (welcherdrucker == &quot;2&quot;)
    {
    Druckername = &quot;PS_2&quot;;
    }
}

void lpr()
{
     int antzahl = parametervector.size();
     string lpr_befehl;
     string move_ordner = &quot;D:\\schwabenpost\\Archiv&quot;;
     string move_befehl;

     for(int i=0; i&lt;antzahl; i++)
     {
     lpr_befehl = &quot;lpr -S &quot; + Servername + &quot; -P &quot; + Druckername + &quot; -d &quot; + &quot;\&quot;&quot; + parametervector[i]+ &quot;\&quot;&quot;;
     move_befehl = &quot;move \&quot;&quot; +  parametervector[i] + &quot;\&quot; &quot; + &quot;\&quot;&quot; + move_ordner + &quot;\&quot;&quot;;

     cout &lt;&lt; &quot;Drucke:   &quot; &lt;&lt; &quot;\&quot;&quot; &lt;&lt; parametervector[i] &lt;&lt; &quot;\&quot;\n&quot;;

         if(system(lpr_befehl.c_str())==0)
         {              
         system(move_befehl.c_str());                           
         } 
     }
}

int main (int argc, char* argv[])
{
    int zaehler = 1;
    while (zaehler &lt; argc)
    {
    parametervector.push_back(argv[zaehler]);
    zaehler++;
    }

    if(argc == 1)
    {
    cout &lt;&lt; &quot;Es wurden keine Parameter mitgegeben - Programm Ende&quot; &lt;&lt; endl;
    getch();
    exit (-1);
    }

    druckerauswahl();

    lpr();

	return 0;
}
</code></pre>
<p>Meine Frage ist Simpel. Ich scicke 30 Dateien auf den Drucker</p>
<p>Der LPR befehl macht immer genau 11 danach macht er eine minute nichts<br />
dann wieder 11 dann wieder eine minuten nichts</p>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /></p>
<p>ist das normal ???</p>
<p>Also ich habe auch shcon versucht im dos schell shnell hintereinander einfach mal 30 lpr befehle aufzurufen und da bleibt der auch bei 11 stehen für ne weile bevor der weiter macht</p>
<p>kann mir da wer helfen ? is dieser befehl so buggy ?</p>
<p>oder sendet mein drucker da vielecith stop zurück oder so</p>
<p>need help</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1368179</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1368179</guid><dc:creator><![CDATA[MatthiasTheOne]]></dc:creator><pubDate>Wed, 19 Sep 2007 06:56:58 GMT</pubDate></item><item><title><![CDATA[Reply to LPR befehl fehlerhaft on Wed, 19 Sep 2007 07:16:34 GMT]]></title><description><![CDATA[<p>Wieviel Speicher hat dein Drucker denn? Ich vermute jetzt einfach mal, dass dann der Druckerspeicher voll ist. Waere auf jeden Fall das nahe liegendste. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f576.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--sunglasses"
      title=":sunglasses:"
      alt="🕶"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1368190</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1368190</guid><dc:creator><![CDATA[Ajaw]]></dc:creator><pubDate>Wed, 19 Sep 2007 07:16:34 GMT</pubDate></item><item><title><![CDATA[Reply to LPR befehl fehlerhaft on Wed, 19 Sep 2007 07:24:16 GMT]]></title><description><![CDATA[<p>Daran kanns net liegen</p>
<p>Das sind großmaschinen</p>
<p>die haben 161MB speicher und können 61GB auslagern auf Festplatte</p>
<p>Die 30 Files die ich drucken mag sind jeweils nur 30kb groß</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1368195</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1368195</guid><dc:creator><![CDATA[MatthiasTheOne]]></dc:creator><pubDate>Wed, 19 Sep 2007 07:24:16 GMT</pubDate></item><item><title><![CDATA[Reply to LPR befehl fehlerhaft on Wed, 19 Sep 2007 08:11:10 GMT]]></title><description><![CDATA[<p>Ist es WinNT? Wenn ja, dann ist <a href="http://support.microsoft.com/kb/141708/de" rel="nofollow">das hier</a> dein Problem. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1368228</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1368228</guid><dc:creator><![CDATA[Ajaw]]></dc:creator><pubDate>Wed, 19 Sep 2007 08:11:10 GMT</pubDate></item><item><title><![CDATA[Reply to LPR befehl fehlerhaft on Wed, 19 Sep 2007 08:15:03 GMT]]></title><description><![CDATA[<p>Danke das isses ^^</p>
<p>so leicht geht das <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>THX nochmal</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1368231</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1368231</guid><dc:creator><![CDATA[MatthiasTheOne]]></dc:creator><pubDate>Wed, 19 Sep 2007 08:15:03 GMT</pubDate></item><item><title><![CDATA[Reply to LPR befehl fehlerhaft on Wed, 19 Sep 2007 12:34:12 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile-var-mode-is-viewprofile-and-u-is-403.html" rel="nofollow">HumeSikkins</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-15.html" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-4.html" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39405.html" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1368456</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1368456</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Wed, 19 Sep 2007 12:34:12 GMT</pubDate></item></channel></rss>