|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
IFCONFIG is available... sort of
So, I have this script that makes a call to ifconfig to pull the interface information and report it. When I log on to the machine the script works just fine. But, if I'm on a remote machine and I make a call like this. Code:
ssh user@server ./script.bash I get an error saying that the IFCONFIG command is unavailable. No idea why. Everything is being run as a user. Naturally, root ssh is disabled. |
| Sponsored Links | ||
|
|
#2
|
|||
|
|||
|
What, exactly, does it say?
It's probably just not in your PATH. See 'whereis ifconfig' to find out where it's hiding on that system. |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
Quote:
Code:
./sysinfo.bash: line 30: ifconfig: command not found I also got the same error when I supplied the full path. I'd supply the script, but it's it's on a seperate network and I can't transfer the script to public domain. The full path is /usr/sbin/ifconfig. And it runs fine if I do an actual login. Last edited by Binary Buddha; 08-03-2012 at 05:44 PM.. Reason: forgot stuff |
|
#4
|
|||
|
|||
|
Did you check the full path on the remote system, though? It might be a different full path on your remote system than your local one.
Quote:
|
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
Yes, I did. I modified the script on the remote machine to point to /usr/sbin/ifconfig which is where it's located. I don't have whereis so I used which. Which is pretty much the same. It's Solaris 10 on a sparc Netra-T5220.
|
| Sponsored Links | |
|
|
#6
|
|||
|
|||
|
Well then, check for typos or special characters like carriage returns in the file.
|
| Sponsored Links | |
|
|
#7
|
|||
|
|||
|
Quote:
Recent releases have /usr/sbin/ifconfig being just a symbolic link to /sbin/ifconfig. |
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Script to sort the files and append the extension .sort to the sorted version of the file | pankaj80 | UNIX for Advanced & Expert Users | 3 | 06-07-2011 09:28 AM |
| not able to run ifconfig | mail2sant | Shell Programming and Scripting | 3 | 12-07-2010 05:02 AM |
| ifconfig!!!! | moco | Shell Programming and Scripting | 3 | 04-12-2007 08:22 AM |
| ifconfig | Jariya | OS X (Apple) | 0 | 08-12-2005 06:10 AM |
| ifconfig | breigner | UNIX for Dummies Questions & Answers | 7 | 04-16-2004 05:14 PM |
|
|