Skip to main content
added 37 characters in body; edited tags; edited title
Source Link
Martin Prikryl
  • 22.7k
  • 10
  • 83
  • 164

Sending data from .txt file to raw connection with plinkPlink automatically?

I'm trying to create an automated excel script and I want that script to send the output data to another system through plink for example. I've succeeded with opening the plink and connecting to the right server already so that's no problem. My problem is that I want plinkplink to send the text that I keep in a text document and for that, I've been trying to make the "-m"-m setting work for plink.

Here is an example of the type of text iI want plinkplink to send:

<?xml version="1.0" standalone="no"?>       
<!DOCTYPE labels SYSTEM "label.dtd">        
<labels _FORMAT="TEST.layout" _QUANTITY="1" _PRINTERNAME="Printer 1" _JOBNAME="LBL101">
    <label>     
<variable name="Antal">56</variable>
<variable name="EAN_nr">514515615613</variable>
<variable name="Material_nr">1514651465</variable>
<variable name="Bäst_Före">220301</variable>
<variable name="Nettovikt">021523</variable>
<variable name="Artikel">Watermelons</variable>
<variable name="Produktionsdatum">210301</variable>
<variable name="SSCC">1565145156156165</variable>
<variable name="Barcode1">1451251416541513</variable>
<variable name="Barcode2">526154561</variable>
<variable name="Barcode3">54156165145145616</variable>
<variable name="Barcode4"></variable>
    </label>        
</labels>   
<?xml version="1.0" standalone="no"?>       
<!DOCTYPE labels SYSTEM "label.dtd">        
<labels _FORMAT="TEST.layout" _QUANTITY="1" _PRINTERNAME="Printer 1" _JOBNAME="LBL101">
    <label>     
<variable name="Antal">56</variable>
<variable name="EAN_nr">514515615613</variable>
<variable name="Material_nr">1514651465</variable>
<variable name="Bäst_Före">220301</variable>
<variable name="Nettovikt">021523</variable>
<variable name="Artikel">Watermelons</variable>
<variable name="Produktionsdatum">210301</variable>
<variable name="SSCC">1565145156156165</variable>
<variable name="Barcode1">1451251416541513</variable>
<variable name="Barcode2">526154561</variable>
<variable name="Barcode3">54156165145145616</variable>
<variable name="Barcode4"></variable>
    </label>        
</labels>   

(Yes it is dummy values)

Anyway, I've not gotten the "-m"-m option to work, plinkplink just accepts the fact that the option is chosen and doesn't seem to do anything. But it will complain if I put an invalid file path.

So if anyone would like to point out what I'm doing wrong that would be great!

Sending data from .txt file with plink automatically?

I'm trying to create an automated excel script and I want that script to send the output data to another system through plink for example. I've succeeded with opening the plink and connecting to the right server already so that's no problem. My problem is that I want plink to send the text that I keep in a text document and for that, I've been trying to make the "-m" setting work for plink.

Here is an example of the type of text i want plink to send:

<?xml version="1.0" standalone="no"?>       
<!DOCTYPE labels SYSTEM "label.dtd">        
<labels _FORMAT="TEST.layout" _QUANTITY="1" _PRINTERNAME="Printer 1" _JOBNAME="LBL101">
    <label>     
<variable name="Antal">56</variable>
<variable name="EAN_nr">514515615613</variable>
<variable name="Material_nr">1514651465</variable>
<variable name="Bäst_Före">220301</variable>
<variable name="Nettovikt">021523</variable>
<variable name="Artikel">Watermelons</variable>
<variable name="Produktionsdatum">210301</variable>
<variable name="SSCC">1565145156156165</variable>
<variable name="Barcode1">1451251416541513</variable>
<variable name="Barcode2">526154561</variable>
<variable name="Barcode3">54156165145145616</variable>
<variable name="Barcode4"></variable>
    </label>        
</labels>   

(Yes it is dummy values)

Anyway, I've not gotten the "-m" option to work, plink just accepts the fact that the option is chosen and doesn't seem to do anything. But it will complain if I put an invalid file path.

So if anyone would like to point out what I'm doing wrong that would be great!

Sending data from .txt file to raw connection with Plink automatically?

I'm trying to create an automated excel script and I want that script to send the output data to another system through plink for example. I've succeeded with opening the plink and connecting to the right server already so that's no problem. My problem is that I want plink to send the text that I keep in a text document and for that, I've been trying to make the -m setting work for plink.

Here is an example of the type of text I want plink to send:

<?xml version="1.0" standalone="no"?>       
<!DOCTYPE labels SYSTEM "label.dtd">        
<labels _FORMAT="TEST.layout" _QUANTITY="1" _PRINTERNAME="Printer 1" _JOBNAME="LBL101">
    <label>     
<variable name="Antal">56</variable>
<variable name="EAN_nr">514515615613</variable>
<variable name="Material_nr">1514651465</variable>
<variable name="Bäst_Före">220301</variable>
<variable name="Nettovikt">021523</variable>
<variable name="Artikel">Watermelons</variable>
<variable name="Produktionsdatum">210301</variable>
<variable name="SSCC">1565145156156165</variable>
<variable name="Barcode1">1451251416541513</variable>
<variable name="Barcode2">526154561</variable>
<variable name="Barcode3">54156165145145616</variable>
<variable name="Barcode4"></variable>
    </label>        
</labels>   

(Yes it is dummy values)

Anyway, I've not gotten the-m option to work, plink just accepts the fact that the option is chosen and doesn't seem to do anything. But it will complain if I put an invalid file path.

So if anyone would like to point out what I'm doing wrong that would be great!

edited tags
Link
Nils
  • 11
  • 1
Source Link
Nils
  • 11
  • 1

Sending data from .txt file with plink automatically?

I'm trying to create an automated excel script and I want that script to send the output data to another system through plink for example. I've succeeded with opening the plink and connecting to the right server already so that's no problem. My problem is that I want plink to send the text that I keep in a text document and for that, I've been trying to make the "-m" setting work for plink.

Here is an example of the type of text i want plink to send:

<?xml version="1.0" standalone="no"?>       
<!DOCTYPE labels SYSTEM "label.dtd">        
<labels _FORMAT="TEST.layout" _QUANTITY="1" _PRINTERNAME="Printer 1" _JOBNAME="LBL101">
    <label>     
<variable name="Antal">56</variable>
<variable name="EAN_nr">514515615613</variable>
<variable name="Material_nr">1514651465</variable>
<variable name="Bäst_Före">220301</variable>
<variable name="Nettovikt">021523</variable>
<variable name="Artikel">Watermelons</variable>
<variable name="Produktionsdatum">210301</variable>
<variable name="SSCC">1565145156156165</variable>
<variable name="Barcode1">1451251416541513</variable>
<variable name="Barcode2">526154561</variable>
<variable name="Barcode3">54156165145145616</variable>
<variable name="Barcode4"></variable>
    </label>        
</labels>   

(Yes it is dummy values)

Anyway, I've not gotten the "-m" option to work, plink just accepts the fact that the option is chosen and doesn't seem to do anything. But it will complain if I put an invalid file path.

So if anyone would like to point out what I'm doing wrong that would be great!