Picking problem with printers


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Picking problem with printers
# 1  
Old 02-04-2011
Picking problem with printers

Hello to everybody i have problem the picking process falls and falls.

I dont now what the picking process do i believe that is a print server on a data base i dont know where to look.

Is a solaris 10 with korn sheell the process show this
Code:
ps -ef | grep picking
batch 18466     1   0 11:31:20 pts/2       0:00 -ksh -c ./picking/activeimpresion.sh DESA&
batch 18348     1   0 11:31:12 pts/2       0:00 -ksh -c ./picking/activeimpresion.sh PRO&

The scripts do this (activeimpresion.sh)
Code:
:
base=$1
ORACLE_SID=$base
export ORACLE_SID
ORAENV_ASK=NO
. oraenv
procbus=`/home/batch/picking/search_printer.sh $base` 

if test $procbus -eq 0
then 
        echo start impresion $base `date` >>out
        /home/batch/picking/eje_ImpPicking.sh $base>> out&
else 
        echo the printer is in en $base `date` >> out
fi

Where i have to check? o do? this process is always falling? thank you very much Smilie

Last edited by Scott; 02-04-2011 at 11:56 AM.. Reason: Code tags, please...
# 2  
Old 02-04-2011
going to need more info to help. Need to know what search_printer.sh has in it.
what eje_impPicking.sh has in it. What users is this running as? is the source oraenv in place and usable? can this user connect to the databases being passed DESA and PRO. has there been a password change that did not get put into oracle?

This will probably be a start point. Have to see from there.
# 3  
Old 02-04-2011
search_printer.sh
Code:
 
procSleep=`ps -ef | grep batch | grep  'sleep 26' | grep -v grep| wc -l `
if test $procSleep -eq 0
then
    procSleep=`ps -ef | grep batch | grep  Imp_Picking_Desa| grep -v grep| wc -l `
fi
export procSleep
echo $procSleep
      ;;
   Desa) 
procSleep=`ps -ef | grep batch | grep  'sleep 27' | grep -v grep| wc -l `
if test $procSleep -eq 0
then
    procSleep=`ps -ef | grep batch | grep  Imp_Picking_Prod | grep -v grep| wc -l `
fi
export procSleep
echo $procSleep
      ;;
   Prod)

eje_ImpPicking.sh


Code:
 
base=$1
case $base in 
      xile8) 
while true
do
  /home/batch/picking/Imp_Picking_Desa 2>err_reg.txt
  if [ $? != 0 ]
  then
    exit 0
  fi
  sleep 25
done
        ;;
      Desa)   
while true
do
  /home/batch/picking/Imp_Picking_Prod 2>err_pob.txt
  if [ $? != 0 ]
  then
    exit 0
  fi
  sleep 26
done
        ;;
      Prod)

The source is place and usable and this script start with a menu, perm and password are okey, because the script work but randomly stop.

Thank you agaian
# 4  
Old 02-04-2011
ok so the flow is:
activeimpresion.sh is called by cron ??

----> it checks (calls) serach_printer <BASE>
-------------> search_printer does a ps to see what is running and set count
----> if count = 0 search_printer does ps and count for imp_Picking_prod
but no matter what results procSleep is exported and echoed out.
**** now I don't see a exit end the echo could feed back to the calling shell if it does not do anything else (risky)
-----> now back at activeimpresion
-> if return from search_printer is 0
------> call eje_Imp_Picking
else
--> echo stuff and end (maybe looks like alot of script is missing so doing my best guess)
------> call eje_imp does a case (lots missing again) calling imp_picking_prod with error out to err_prob.txt

status chaeck and other stuff....

ok what is in err_prob.txt, what in the script or program Imp_Picking_prod

Also do you know how far you get into the script(s) before it fails???
# 5  
Old 02-04-2011
In erro_prb.txt there is nothing ant in the script i do a file

And when i do file to imp_picking_prod : ELF 32-bit MSB executable SPARC Version 1, dynamically linked, not stripped

how far? is random all i know that when a came to barck the have to era the picking. Can you explain what picking is? jeje thank you
# 6  
Old 02-04-2011
this seems to be linked to a application. Not so much a OS issue.
do you get output from a
Code:
 lpstat -a

What is the system used for? is this Oracle EBS or Financial 's ?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Cherry picking with sed?

#!/bin/bash shuffle() { Deck=$(shuf -e {2,3,4,5,6,7,8,9,T,J,Q,K,A}{H,S,D,C}) } PH=(6H 9S KC) # playerhand CH=(JD 4D) # computerhand AC=2S # activecard shuffle echo $Deck I am unsure about how to proceed. I want to reshuffle a deck but without the cards in... (3 Replies)
Discussion started by: cogiz
3 Replies

2. Shell Programming and Scripting

Picking up files conditionally

Hi I have a scenario: I have a directory say DIR1 (no sub directories) and have few files in that directory as given below: app-cnd-imp-20150820.txt app-cxyzm-imp-20150820.txt app-petco-imp-20150820.txt app-mobility-imp-20150820.txt app-mobility-imp-20150821.txt... (7 Replies)
Discussion started by: Saanvi1
7 Replies

3. Programming

Python:Picking values from a table

Hi I trying to write a python script that executes a command to screen scrub results below I will appreciate it very much if you can help me with a python script that can pick the percentage USAGE in the second column based on the supplied queue number in the first column Thanks in advance. ... (2 Replies)
Discussion started by: kaf3773
2 Replies

4. Shell Programming and Scripting

Picking values from a file.

Hi, I have a file which contains values in this format. abc cde fgh ijk lmn opq rst uvw The user will pass the required parameter from the command line. My requirement is that script should pick the values passed by the user and the next value in the next line. Like if the user... (10 Replies)
Discussion started by: arijitsaha
10 Replies

5. Solaris

Problem in setting up printers

Hi, We are facing an issue while setting up printers in solaris 5.10 . We have Oracle EBS installed over it. We have configured the printer and when we try printing a page from EBS it is printing fine. But the problem arises when we print two copies of the page. The first page is printing fine... (5 Replies)
Discussion started by: Srinathkiru
5 Replies

6. Shell Programming and Scripting

awk not picking up /PP SIZE/

for vgls in `lsvg` do lsvg $vgls | awk '/^VOLUME GROUP/ { printf "%s ", $3 } /PP SIZE/ { S=$6 } /TOTAL PPs/ { printf "%d ", $6*S/1024 } /FREE PPs/ { print $6*S/1024 } ' done This returns /TOTAL PPs/ and /FREE PPs/ fine, but not /PP SIZE/. Please advise. (11 Replies)
Discussion started by: Daniel Gate
11 Replies

7. Shell Programming and Scripting

Picking matching strings

I have a list of file names. However in some instances I might have a "-" at the beginning of the filename or an "=". For example I might have something like this set Lst = "file1 file2 file3 -file4 file5=" I want to pick up the ones having "-" at the beginning or "=" and store them in... (22 Replies)
Discussion started by: kristinu
22 Replies

8. Shell Programming and Scripting

need help on picking a right book

hi, I'm searching for a perfect book to learn awk programming, i started with sed&awk book, but i think this book might be outdated as it is written way back in 97 and also it doesn't have many examples. So, I thought of getting some advice from the experts here. Pls suggest me some books. ... (1 Reply)
Discussion started by: dvah
1 Replies

9. UNIX for Advanced & Expert Users

Using awk : picking specified columns

Hi, I would like to get some specific fields from one long line. My line looks like CcnCDRFile0-8535123473201007170536_2010-07-20_17:06:02:,,9963387265,,,,,00720141432,,+0.310,+79.255,+78.945,,,,1492,,,,0,... (1 Reply)
Discussion started by: kkarthik_kaja
1 Replies

10. Solaris

Problem defining remote printers on solaris 10

Good morning, I have a server with solaris 10 that I want to intall remote printers. I started lpsched deamon without problems with command: svcadm enable application/print/server I want to install printers that are defined locally on print server, so: lpadmin -p <device> -s <print... (2 Replies)
Discussion started by: bonovox
2 Replies
Login or Register to Ask a Question