Register
It is currently Sat Dec 20, 2014 6:34 am

Need help writing a script


All times are UTC - 6 hours


Post new topic Reply to topic  [ 4 posts ] 
Author Message
 PostPosted: Mon Jun 13, 2011 3:10 pm   

Joined: Mon Jun 13, 2011 11:08 am
Posts: 2
I need help with a complicated script.
We have an old TCAL program for a Barcode scanner. I need to convert the old TCAL program to a Bash script to run on a new (linux) barcode scanner.
I am willing to pay for someone to write it. We have the original code from the old scanner.
Any suggestions would be appreciated.


Top
 Profile  
 PostPosted: Wed Jun 15, 2011 3:09 pm   
Moderator
User avatar

Joined: Wed May 03, 2006 2:05 pm
Posts: 242
Hi kldailey!

I'm not familiar with TCAL... Could you give us some more info about what the script needs to do?

Thanks!
-Jeo


Top
 Profile YIM  
 PostPosted: Thu Jun 16, 2011 12:49 pm   

Joined: Mon Jun 13, 2011 11:08 am
Posts: 2
I have been going through the old script trying to make an outline of what it does. This is most of it:

Message 1, 1 " PVC Shipping "
Message 1, 2 " 1) Enter Data"
Message 1, 3 " 2) Review Data"
Message 1, 4 " 3) Send Data"
WHEN OK, EXAMINE MENU-WS
WHEN "1", PERFORM PVC-RTN LOOP
end-when
WHEN "2", PERFORM REVIEW-RTN LOOP
end-when
WHEN "3", PERFORM SEND-RTN LOOP
end-when
WHEN "4", PERFORM PERFORM SELECT-ORD-CUST
end-when

PVC-RTN
1. prompt for customer name (always 6 charactors)
a. User types "Cust01"
2. Prompt ”P” for Pallet” “C” for “Case”
If “P” (Pallet)
Prompt for barcode
User scans "01000000004100291105194320200395230"
Parses data into temp storage as follows:
Cust | Filler | prd | tr1 | typ1 | Lotnum | tr2 | wght | typ2 | Qty
Custnm | 0100000000 | 41002 | 9 | 11 | 05194 | 3202 | 003952 | 30 | 00003
Lookup prd to get desc from product db
Display in editable fields :
Cust
Prod
Desc
wght
qty
User verifies, then presses enter
Write to database “ord.db” : Cust
Prod
Desc
wght
qty

If “C” (Case)
Prompt for barcode
User scans "01000000000100391111052532020001241004155108287"
Parses data into temp storage as follows:
Cust | Filler | prd | tr1 | typ1 | pckdt | tr2 | wght | typ2 | lot | typ3 | tr3
Custnm | 0100000000 | 01003 | 9 | 11 | 110525 | 3202 | 000124 | 10 | 04155 | 10 | 8287

Lookup prd to get desc from product db
Display in editable fields :
Cust
Prod
Desc
wght

User verifies, then presses enter
Write to database “ord.db” : Cust
Prod
Desc
wght
qty


User will also need to subtract a case from a customer shipment. (assuming the user scans a pallet, which had numerous cases)
This would be done by hitting a “subtract” button or key, then scan a “C” lable and subtract the qty of 1 and the weight from existing database.


You do not have the required permissions to view the files attached to this post.


Last edited by kldailey on Mon Jun 27, 2011 11:29 am, edited 1 time in total.

Top
 Profile  
 PostPosted: Thu Jun 16, 2011 11:28 pm   
User avatar

Joined: Sun Jun 27, 2010 12:57 am
Posts: 192
[ignore me, bad post]


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP