The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Executing SQLPLUS in UNIX Script from JAVA anooptech UNIX for Advanced & Expert Users 0 04-16-2008 09:53 AM
after executing execvp()... program hangs up Crab High Level Programming 3 09-21-2006 11:31 AM
Executing an .ec program in different informix versions matrixmadhan High Level Programming 0 05-21-2005 07:29 AM
Executing UNIX command from java on NT CJ Walt UNIX for Dummies Questions & Answers 1 06-25-2003 02:39 PM
Java program calling a UNIX command QUartz Ite UNIX for Dummies Questions & Answers 2 11-15-2001 09:17 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-24-2005
shailendrat shailendrat is offline
Registered User
  
 

Join Date: Mar 2005
Posts: 6
executing the su command from a java program.

Say in unix (AIX) m/c, I am logged in with s1 user and want to start process p1 with user credentials of s2.

I can do manually in this way:
#su - s2
#enter password for s2> somePassword
$ p1

But all this I have to do through a java program. How to pass the password through program.
One way is to use a script. But then in script also how to pass the password.

I will be thankful, if anybody can suggest some solution to this problem.

Thanks in advance.
  #2 (permalink)  
Old 03-24-2005
Kelam_Magnus's Avatar
Kelam_Magnus Kelam_Magnus is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
I believe this site still has rules about posting homework questions.

IF however, you are on a self-study regimen or if this is truly work-related I apologize.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:01 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0