10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have this script in server2
# cat /root/yesno.sh
#!/bin/bash
read -p "are you sure?" -n 1 -r
if $ ]]; then
echo ""
echo "YES"
else
echo "NO"
fi
# sh /root/yesno.sh
are you sure?y
YES (5 Replies)
Discussion started by: anil510
5 Replies
2. UNIX for Advanced & Expert Users
First, forgive me if this is a stupid questions that I should have asked in the non-expert forum. It seems like a hard questions to me.
Is there a way to find the hardware model name from the command line on UNIX machines in general?
I want to find out what kind of machines are running at a... (5 Replies)
Discussion started by: Pug
5 Replies
3. Shell Programming and Scripting
I'm trying to write a script that in the end will from one central location hop to a bunch of servers and then run a series of ping tests. The thing is, the list of devices that needs to be pinged is going to be different for each server. So what I want to do is be able to do is read through the... (0 Replies)
Discussion started by: DeCoTwc
0 Replies
4. Shell Programming and Scripting
Hi
I have the following script :
#!/bin/ksh
#################### Function macAddressFinder ########################
macAddressFinder()
{
`ifconfig -a > ipInterfaces`
`cat ipInterfaces`
}
#######################################################################
#
#
print... (2 Replies)
Discussion started by: presul
2 Replies
5. Shell Programming and Scripting
Dear all ,
I have a script. this script called get.sh and can get some solaris infomation and save the result as result.tar.gz.
the problem is : we have 12 servers. every time. I need to login 12 server and do the same job 12 times.:mad:
master server
... (2 Replies)
Discussion started by: chinesefish
2 Replies
6. Shell Programming and Scripting
If I run the following command remotely after ssh than it works fine
su - oracle -c "/oracle/product/102/db/bin/dbshut"
But If I run the following command it doesn't work
su - oracle -c "/oracle/product/102/db/bin/lsnrctl stop"
Because I think there is a space is present between lsnrctl and... (1 Reply)
Discussion started by: madhusmita
1 Replies
7. UNIX for Dummies Questions & Answers
ssh user@host -q -n 'grep `hostname` /etc/hosts; telnet 10.100.23.45 1234;'
When i run this command remotely it is hanging and not giving me the prompt, Can anyone tell me how can I exit a telnet command remotely please.
Thanks. (10 Replies)
Discussion started by: venu_nbk
10 Replies
8. Shell Programming and Scripting
The title says it all really. I am writing a shell script for a Linux box, and I have recently run into a problem. I need to make sure I am at a certain run level first.
Hence, the question. How can I find out what run level the box is currently running at?
Is there a system variable... (2 Replies)
Discussion started by: Scripting Newb
2 Replies
9. Shell Programming and Scripting
I understand that to find a type of file using command find I could do "find -type f -name \*.htm -print".
However, I wish to find all files BUT *.htm.
Can I negate the search somehow?
Again, I have peeked into the man files etc... If anyone has an answer, Thanks in Advance! (3 Replies)
Discussion started by: gsjf
3 Replies
10. UNIX for Dummies Questions & Answers
Hi I am trying to find out the best way to find out how long a command takes to run in miliseconds ..
Is there such a way of doing this in Unix ?
Thanks (3 Replies)
Discussion started by: cfoxwell
3 Replies
NETSCRIPT-2.2.conf(5) File Formats Manual NETSCRIPT-2.2.conf(5)
NAME
/etc/netscript/network.conf - interface, firewalling, and QoS configuration file.
/etc/netscript/if.conf - interface setup shell script file
/etc/netscript/qos.conf - QoS setup shell script file
/etc/netscript/ipfilter.conf - IP chains filtering shell script file
/etc/netscript/srvfilter.conf - server IP filter shell script file
DESCRIPTION
This manpage is a place holder until something better is written when the netscript itself has stopped changing rapidly.
Please see the README file in the /etc/netscript directory, and READ the configuration files if you need to change them. Apart from net-
work.conf, all of them contain sh (1) shell script functions which are there so that various things can be altered or hooked in at the
right place. Network.conf contains the full network setup details, including special interface setup for the likes of ciped/pppd/wanconfig,
and is fully commented with examples given.
UPGRADE PATH FROM KERNEL 2.2.X
The firewall/IP filtering stuff in ipfilter.conf is the part that changed radically with the move to iptables and a far better way of set-
ting up the IP filtering rules, however the QoS and interface startup/shutdown in if.conf have changed but are backwards compatible with
the old 2.2.x ipchains version of netscript for the interface address configuration settings. You will have to set up the filtering again
to use iptables by directly using the iptables commands.
Also, the kernel 2.2.x version scripts are set up so that iptables is only run on a 2.4.x kernel, otherwise IP forwarding is disabled if
beforehand you set IPFWDING_KERNEL to FILTER_ON in network.conf.
This means that when you upgrade a box to a 2.4.x router kernel, you should then be able to reboot it and log into remotely and upgrade
netscript to the version that will support 2.4.x. In this situation, if you have set old IPFWDING_KERNEL setting to FILTER_ON beforehand
in network.conf, all IP forwarding through the box will also be disabled. This means that you can safely remotely upgrade a firewall.
SEE ALSO
netscript(8), ipchains(8), iproute(8), brcfg(8).
AUTHOR
This manual page was written by Matthew Grant <grantma@anathoth.gen.nz>, for the Debian GNU/Linux system (but may be used by others).
BUGS
The author is lazy. He needs to write btter man pages...
November 23, 2000 NETSCRIPT-2.2.conf(5)