Pelican Parts
Parts Catalog Accessories Catalog How To Articles Tech Forums
Call Pelican Parts at 888-280-7799
Shopping Cart Cart | Project List | Order Status | Help



Go Back   Pelican Parts Forums > Miscellaneous and Off Topic Forums > Off Topic Discussions


Reply
 
LinkBack Thread Tools Rate Thread
Author
Thread Post New Thread    Reply
Too big to fail
 
widebody911's Avatar
 
Join Date: Jan 2002
Location: Carmichael, CA
Posts: 33,894
Garage
Send a message via AIM to widebody911 Send a message via Yahoo to widebody911
So, you do a ps, and don't see your processes; have you validated that they really are running?

What are the perms on /proc?

To start something as root as another user, use su

su weather -c "/your/comand/here "

Quote:
Originally posted by bryanthompson

I have a box running RH9, and when I start it up and ps -A, I can see tons of mysql processes running. I have a java program that uses a mysql database, but it won't pick up those mysql processes... either they're some other type, or they're running on the wrong port, or there's a bigger problem. Anyway, if I /usr/local/mysql/bin/mysqld_safe & from root then run my java prog, it all works fine.

Anyway... I added my mysqld_safe command to my /etc/rc.local and rebooted, but didn't see it in my process list, and my java prog didn't see it either. I tried running the startup command from the terminal, and it yelled at me saying that it was already in use.

What I need to do, is have it so when the computer's turned on it will start the mysql server, then run my java program. I'd like to have the java program run as user "weather" and the mysqld started as root.

__________________
"You go to the track with the Porsche you have, not the Porsche you wish you had."
'03 E46 M3
'57 356A
Various VWs
Old 11-17-2004, 12:55 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #21 (permalink)
drag racing the short bus
 
dd74's Avatar
 
Join Date: May 2002
Location: Location, Location...
Posts: 21,983
Here's an idea: tell me if I'm misguided...

I can purchase a good external drive dedicated to testing out flavors of Linux. Just hook the drive up to one of my laptops, download the latest flavor, ISO format it to CDR or CDRW, then execute onto the external. Plug and play afterward.

What do you guys think?

__________________
The Terror of Tiny Town
Old 11-17-2004, 01:52 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #22 (permalink)
Licensed User
 
Shuie's Avatar
 
Join Date: Feb 2003
Location: ....down Highway 61
Posts: 6,506
dd, did you get the MEPIS disk?
Old 11-17-2004, 05:11 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #23 (permalink)
drag racing the short bus
 
dd74's Avatar
 
Join Date: May 2002
Location: Location, Location...
Posts: 21,983
Quote:
Originally posted by Shuie
dd, did you get the MEPIS disk?
Not yet. I'm sure it's just a little held up with the post office. I'm patient.
__________________
The Terror of Tiny Town
Old 11-17-2004, 06:23 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #24 (permalink)
faster than I once was...
 
FastDave's Avatar
 
Join Date: Oct 2004
Location: U.S.A.
Posts: 1,028
Send a message via Yahoo to FastDave
Jeff uses Linux for his OS. He loves Linux, so if you have a question he can't answer I guarantee you he will find the answer. I think his brain is in binary code! ha He has even taught his teachers some tricks at the technical college he attends. He is currently working on his A+ certification and Cisco certification. The questions will also help him learn more and possibly teach you something too....
He's my son, so I think more of him than most if you can't tell! ha
__________________
~Dave

Last edited by FastDave; 02-09-2005 at 03:16 PM..
Old 11-18-2004, 01:47 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #25 (permalink)
faster than I once was...
 
FastDave's Avatar
 
Join Date: Oct 2004
Location: U.S.A.
Posts: 1,028
Send a message via Yahoo to FastDave
*
__________________
~Dave

Last edited by FastDave; 02-09-2005 at 03:15 PM..
Old 11-18-2004, 01:50 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #26 (permalink)
 
Registered
 
bryanthompson's Avatar
 
Join Date: May 2003
Posts: 5,058
Garage
Send a message via ICQ to bryanthompson
Thom -

Yeah, when I ps -A to see everything, I don't see the java command running, but I finally did get the correct sql service going. In my /etc/init.d (I think... may need to check that) I have an entry like...

su -c weather - "/home/weather/java/run.sh"

and my run.sh looks something like:

#! /bin/sh
cd /home/weather/java
java -noverify DataGrabber

If I run the .sh from terminal, it runs fine... I'm just not getting it to run at startup correctly...
__________________
1983 944 - Sable Brown Metallic / Saratoga / LSD : IceShark Light Kit
Old 11-18-2004, 01:53 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #27 (permalink)
Too big to fail
 
widebody911's Avatar
 
Join Date: Jan 2002
Location: Carmichael, CA
Posts: 33,894
Garage
Send a message via AIM to widebody911 Send a message via Yahoo to widebody911
Quote:
Originally posted by bryanthompson

#! /bin/sh
cd /home/weather/java
java -noverify DataGrabber

If I run the .sh from terminal, it runs fine... I'm just not getting it to run at startup correctly...
Remember that in the init scripts, there isn't much of an evironment. Add an explicit "PATH=(your path here); export PATH" to the 2nd line of your startup script.

You can also turn on debugging, redirect stderr to a file, reboot, and look at the contents of the file to see what's going on.

#! /bin/sh
PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin
export PATH
set -x
exec 2> /tmp/weather.log

cd /home/weather/java
java -noverify DataGrabber
__________________
"You go to the track with the Porsche you have, not the Porsche you wish you had."
'03 E46 M3
'57 356A
Various VWs
Old 11-18-2004, 02:35 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #28 (permalink)
Registered
 
id10t's Avatar
 
Join Date: Mar 2003
Posts: 10,347
Its just not finding the java executable to run the java program with. At a command prompt, type

which java

And it may return something like
/usr/local/j2sdk/bin/java

Edit the startup script that is calling the weather app (in /etc/init.d from your earlier post) and change the last line from

java -noverify DataGrabber

to

/whatever/which/output/for/you/java -noverify DataGrabber

And it should work.
__________________
“IN MY EXPERIENCE, SUSAN, WITHIN THEIR HEADS TOO MANY HUMANS SPEND A LOT OF TIME IN THE MIDDLE OF WARS THAT HAPPENED CENTURIES AGO.”
Old 11-18-2004, 04:24 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #29 (permalink)
Registered Loser
 
Join Date: May 2001
Location: Worcester, MA
Posts: 2,392
Count me in, brothers. I bought an older laptop (366mhz) on a lark just to see if I could get Linux to make it sing. Tried a couple of the popular Live CD Distros (Slax, Knoppix 36, Knoppix 3.7, Mepis, Knoppix-STD) and now I am hooked. Finally settled on Mepis and installed it on the hard drive. Works like a champ - even on my ancient laptop. Now I'm burning Linux CD's and giving them away to friends to share the love. I can't believe how well this system works on just 128meg of RAM. So I haven't bothered to investigate any Linux speed tweaks - but I'll probably get around to it some day.

Just curiosity, does anybody have a handle on how secure or insecure Linux is? I tried Mepis mainly because it comes with a firewall that automatically installs itself. So that seemed sweet. Fell in love with it when it auto-configured all of my hardware without any human interference (well, except for my scroll mouse which is still DOA).

Anyway, I am a convert. Seems to be the only case where you don't get what you pay for. I've used the free web browsers, FTP app, text processor, calculator, graphics viewer, etc etc and it all seems to be pretty top quality stuff. I can find nothing to complain about.
__________________
Owner of a wrecked 944
Old 12-30-2004, 12:26 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #30 (permalink)
Super Moderator
 
cstreit's Avatar
 
Join Date: Feb 2000
Location: Naperville, IL USA
Posts: 14,969
Garage
Hmm... I downloaded Knoppix a few months back to hack into some files that Windoze wouldn't let me delete...

Prollum is, I use a bootable CD-ROM and it won't let me access anything on my drives... Is there a way to point to your DOS partitions with it?
__________________
Chris
----------------------------------------------

1996 993 RS Replica
2023 KTM 890 Adventure R
1971 Norton 750 Commando
Alcon Brake Kits
Old 12-30-2004, 01:20 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #31 (permalink)
Back in the saddle again
 
masraum's Avatar
 
Join Date: Oct 2001
Location: Central TX west of Houston
Posts: 56,185
Chris, I believe you should be able to map the DOS drives to knoppix, but it's been a while since i tinkered, so hopefully one of the other fellas will give you the specifics.

VMWare rocks. If you get a Linux session running in VMWare you can map your Windows partitions, put files in them, and then they are accessible in your host OS.

Linux is much more secure than Windows if you take some time to make it that way. Some distributions can leave lots of open ports during install. Getting a firewall running on the box is a good idea on any OS.
__________________
Steve
'08 Boxster RS60 Spyder #0099/1960
- never named a car before, but this is Charlotte.
'88 targa SOLD 2004 - gone but not forgotten
Old 12-31-2004, 07:57 AM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #32 (permalink)
Registered
 
Join Date: Nov 2004
Posts: 8
You should be able to mount the hard disk partitions. If i remember correctly knoppix provides mount points. Also, I was under the impression that it automounted whatever disk partitions it could. If you could give me the output (command line) of the 'mount' command. Also, is the disk IDE or SCSI? There are a number of things that could be contributing to this. E-mail me at mjb8@lehigh.edu or AIM s/n bombardius. We'll figure this out

-mike



baby on the way
(and by 'baby' i mean '72 2.0 914)

Old 01-05-2005, 10:06 AM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #33 (permalink)
Reply


 


All times are GMT -8. The time now is 02:26 AM.


 
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0
Copyright 2025 Pelican Parts, LLC - Posts may be archived for display on the Pelican Parts Website -    DMCA Registered Agent Contact Page
 

DTO Garage Plus vBulletin Plugins by Drive Thru Online, Inc.