• 1. find my process with all it's arguments
    Hi, this has been bothering me for a while and nobody seems to be able to give me a definitive answer in work....hopefully somebody here will know. 1) I have a process that's running on my Solaris 8 machine. It forks off a child process and I have the path to the executable and the arguments but I don't have their (the childrens) PID's. I have no access to the source code at all so I can't get the info I'm after programmatically. I would like to know if it's possible to get the PID's of the child processes forked by the parent using ps or some other standard command. Is that possible? 2) I need to get my hands on the *complete* arguments passed to a process at startup. For the moment the best I can do is; ps -edf -oargs however it always truncates the arguments. The path to the exe is long and there's a good few parameters specified. Is there a standard way to get *all* the arguments to the process? i.e. argv Thanks for your help/info. GrahamO
  • 2. Temporarily remove solaris packages
    Is there a quick way to *temporarily* remove packages, and reinstall them without using the installation media? I'm testing a shell script which removes several packages and I'd like a quick way of reinstating the packages that the script had removed.


Postby binner » Thu, 03 Jun 2004 22:06:41 GMT


I am going to be rolling CUPS out as a replacement for lp on solaris 8.

The only problem I have is the print manager in CDE cannot talk to CUPS

Any suggestions as to what I can use instead ?

I cannot find the source code for KDEprint which looks like the best replacement.

Anyone know where I can find it ?


Postby Michael Laajanen » Fri, 04 Jun 2004 03:33:50 GMT


For me the CDE printmanager does show the CUPS connected printers, but 
when I try to access the printers it crashes.

If I via the filemanager do drag-and-drop to the CDE printmanager it 
works fine!



Postby Roland Mainz » Fri, 04 Jun 2004 04:39:29 GMT

Ask Sun to get the remaining parts of CDE2.x fixed (that's basically
 http://www.**--****.com/ ) ...



  __ .  . __
 (o.\ \/ /.o)  XXXX@XXXXX.COM 
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)


Postby Richard.L.Hamilton » Fri, 04 Jun 2004 04:43:23 GMT

In article <i4pvc.1038$ XXXX@XXXXX.COM >,
	Michael Laajanen < XXXX@XXXXX.COM > writes:

Perhaps the output of lpstat differs enough between standard and CUPS
versions to cause a problem.

mailto: XXXX@XXXXX.COM    http://www.**--****.com/ ~rlhamil


Postby binner » Sat, 05 Jun 2004 22:28:57 GMT


the problem lay between the chair and the keyboard.

I was being a blithering idiot.  

I had set LPDEST to a missing printer.

I put an existing printer as LPDEST and hey presto it worked


Postby binner » Sat, 05 Jun 2004 22:34:37 GMT


the problem lay between the chair and the keyboard.

I was being a blithering idiot.  

I had set LPDEST to a missing printer.

I put an existing printer as LPDEST and hey presto it worked

Similar Threads:

1.CDE and CUPS

2.CDE and CUPS - solved

I've found the source of troubles - it's the script dtlp in /usr/dt/bin. 
It sets PATH to /bin:/usr/bin, but CUPS lives in /opt/csw. When the 
script invokes lpstat it gets an error message:

~> /bin/lpstat
kyocera-d-27           skoumal@grimm   1131508   kv 10 11:33
kyocera-d-28           skoumal@grimm   1131508   kv 10 11:33
kyocera-d-29           skoumal@grimm   1137506   kv 10 11:33
kyocera-d-30           skoumal@grimm   1134202   kv 10 11:33
kyocera-d-31           skoumal@grimm   1131445   kv 10 11:33
kyocera-d-32           skoumal@grimm   1131445   kv 10 11:33
kyocera-d-33           skoumal@grimm   1131445   kv 10 11:33
kyocera-d-34           skoumal@grimm   1131445   kv 10 11:33
kyocera-d-36           skoumal@grimm   1131824   kv 10 11:33
kyocera-d-37           skoumal@grimm   1131824   kv 10 11:33
kyocera-d-38           skoumal@grimm   1131824   kv 10 11:33
kyocera-d-39           skoumal@grimm   1131824   kv 10 11:33
kyocera-d: not a printer or class

The probable reason why everything worked with the previous printer was 
that the previous version of CUPS also modified /etc/printcap. With the 
new printer and the new CUPS, /etc/printcap remained unmodified and the 
printing utilities in /bin and /usr/bin didn't work properly.

To solve the problem I edited /usr/dt/bin/dtlp, so that it looked in 
/opt/csw/bin. I know that this is not a good solution since a new 
version of OS or a patch can destroy it but I don't know how to make it 


3."cannot open display" error with Xwin32 connecting to Sun/CDE and AIX/CDE

I'm using Xwin32 under windows to connect to different kind of Unix
When connecting to Linux (KDE and Gnome) I don't have any problem ; but
well while connecting to Sun or Aix system running CDE : I get "cannot
open display" error.
The problem seems to become from the CDE environment (any parameter I
need to modify for ?). All other things seem to be fine (DISPLAY, ...).
While I broadcast the network to see the different systems to connect
to, I see all the SUN and AIX systems but I can not connect to (but
well to Linux systems).

Does any body have some trick ?



4.[cups/usb/deskjet5550] Printer stops working, cups gives vague errors

5.Cups-pstoraster 8.15 will not compile with Cups 1.2.2

Hello -

on a FreeBSD i386 machine,v4.11, with an Epson 740 printer on the parallel
port, I had a working print setup until the upgrade to Cups 1.2.2, at which
point the executable "espgs" (an important part of the printer translation
software) stopped working with the following error:

INFO: Processing page 1...
DEBUG2: cups_set_color_info(0x8477034)
DEBUG: cupsEncodeLUT[0] = 0
DEBUG: cupsEncodeLUT[65535] = 1
DEBUG: num_components = 1, depth = 1
DEBUG: cupsColorSpace = 3, cupsColorOrder = 0
DEBUG: cupsBitsPerPixel = 1, cupsBitsPerColor = 1
DEBUG: max_gray = 1, dither_grays = 2
DEBUG: max_color = 0, dither_colors = 0
DEBUG2: cups_get_space_params(0x8477034, 0xbfbfe6e8)
DEBUG: cache_size = 8388608
/usr/libexec/ /usr/local/lib/ Undefined
symbol "pthread_once"

It doesn't matter if I start the print job logged in as "root" or as a
normal user, so permissions are not the issue.  If I change the printer's
driver to a generic one, one which doesn't use "espgs", then this new
version of Cups works fine, but this was done mainly for testing purposes
since it produces text only. The "lptest > /dev/lpt0" command also works
fine with either user.  

Attempting to recompile the "cups-pstoraster" port brings no joy, as the
compile fails with these messages:

./obj/echogs -a ./obj/ -s - lm
if [ x != x ]; then LD_RUN_PATH=; export LD_RUN_PATH; fi; \
/bin/sh <./obj/
/usr/local/lib/ undefined reference to `pthread_getspecific'
/usr/local/lib/ undefined reference to `pthread_once'
/usr/local/lib/ undefined reference to `pthread_key_create'
/usr/local/lib/ undefined reference to `pthread_mutex_unlock'
/usr/local/lib/ undefined reference to `pthread_mutex_lock'
/usr/local/lib/ undefined reference to `pthread_setspecific'
gmake: *** [bin/espgs] Error 1
*** Error code 2

The last successful compile of "cups-pstoraster" was nearly a year ago. 
Until this version of Cups, there's been not a peep out of "espgs": it's
worked fine until this latest upgrade of Cups.

Any attempt at using a non-generic driver with the Epson results in messages
like these in the Cups error log:

D [13/Aug/2006:10:51:46 -0700] [Job
49] /usr/libexec/ /usr/local/lib/ Undefined
symbol "pthread_once"
E [13/Aug/2006:10:51:46 -0700] PID 50967
(/usr/local/libexec/cups/filter/pstoraster) stopped with status 1!
E [13/Aug/2006:10:51:46 -0700] [Job 49] No pages found!
E [13/Aug/2006:10:51:46 -0700] PID 50968
(/usr/local/libexec/cups/filter/rastertoepson) stopped with status 1!

For what it's worth, everything else seems about Cups-1.2.2. seems to hang
together pretty well.  This could be just a stale library hanging around in
my system someplace, so I'm posting this to find out if anyone else is
having these problems.


6. acess CDE on AIX from linux

7. The Open Source CDE and Motif petition

8. CDE source code?

Return to unix


Who is online

Users browsing this forum: No registered users and 93 guest