I am writing a simple DHCP server application that gets ip from a server at boot up ! i wrote a shell script to run the java program that obtains ip from server on another machine...
The problem is when i have obtained the ip i store it in a file ! using awk i retrieve the ip and i'm trying to execute the command ifconfig eth0 x.x.x.x !! as it needs admin privileges it is currently not working.. i need to figure out a way such that at boot up without asking the password the program should run.... please help me!!!
dinesh17 0 Newbie Poster
L7Sqr 227 Practically a Master Poster
JeoSaurus 32 Posting Whiz in Training
L7Sqr 227 Practically a Master Poster
JeoSaurus 32 Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.