LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-11-2015, 05:58 PM   #1
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,973

Rep: Reputation: 271Reputation: 271Reputation: 271
dhclient: execve (/sbin/dhclient-script, ...): Exec format error


When I run dhclient
Quote:
dhclient: execve (/sbin/dhclient-script, ...): Exec format error
shows up in syslog. dhclient doesn't make a connection, which it should. I can run dhclient-script from a prompt without error.
 
Old 10-11-2015, 07:24 PM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,784

Rep: Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214
Does the script begin with a proper "#!/bin/sh" or "#!/bin/bash" line? Lacking that, an exec() call will fail, but your shell has a fallback to try running a new instance of itself to interpret the file when it gets an ENOEXEC ("Exec format error") return from the exec() call.
 
Old 10-11-2015, 09:01 PM   #3
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,973

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by rknichols View Post
Does the script begin with a proper "#!/bin/sh" or "#!/bin/bash" line?
That was the first thing I checked for.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
reason for multiple dhclient leases in /var/lib/dhclient/dhclient.leases psycroptic Linux - Networking 1 04-23-2014 09:24 AM
'/sbin/dhclient wlan0' not working in CentOS 5.3 saivin Linux - Wireless Networking 6 08-08-2009 02:33 AM
persmissions required to execute /etc/dhclient-script gs1978 Linux - Networking 1 07-28-2009 05:30 AM
dhclient and dyndns: way to execute script when IP changes? Kropotkin Linux - Networking 2 02-27-2008 10:07 AM
/sbin/dhclient-script questions registering Linux - Networking 1 11-16-2006 03:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration