Forum Discussion
Bob_M_10973
Nimbostratus
Mar 25, 2009shell on F5 does not respond as normal shell
I would search the forums for this but the hyperlinks returned upon searches don't work..
This link:
http://devcentral.f5.com/wiki/default.aspx/AdvDesignConfig/LTM_Backup_Shell_Script.html
has a handy script for backing up configs to an sftp server. Problem is, when it reaches the line:
export b=`hostname`...
the shell complains that you should use bigpipe commands to configure the system and of course the export command fails to do what it's supposed to. Since I'm aware of what the hostname is, I could just hardwire it but that is against my religion.
It also means there are other commands that will probably come up due to this behavior so it'd be better to understand why this is happeing and know how to deal with it. I tried this with bash and sh and both produce the same error.
Oh, if anyone can tell me why searches aren't working on this forum...
- hoolio
Cirrostratus
The hostname command was changed in 9.4.2+ to an annoying alias suggesting you use the 'b system hostname' command to change the hostname. You can avoid this by using the full path for the real hostname command '/bin/hostname' or by using 'command hostname': - JRahm
Admin
Are you saying the links are failing, or that you are not receiving any results? I can't reproduce the former in IE or Firefox, and for the latter, click the search button to the right of the text field instead of hitting return and you should get results. - JRahm
Admin
Word from Joe is that the problem with hitting return on the forum search is fixed! - Bob_M_10973
Nimbostratus
the search is not the problem, it is the hyperlinks returned by the search, clicking on them gives a "Page not found" error - Bob_M_10973
Nimbostratus
and thanks julio for the note on /bin/hostname - Bob_M_10973
Nimbostratus
don't want this to get lost so here's a screenshot of the error when i click on a list of search items returned by the search, again: - JRahm
Admin
The link in your browser snapshot above that is failing for you works just fine for me in IE7, Firefox3, and Opera9. I don't have an earlier version of IE that I can test from, anyone else?
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects