10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to create an Expect script that does the following:
1) Telnets to an IP address and logs in with user ID and Password
2) Issue a CLI command to the server that will output data of which I am particularly interested in a DS1 clock 'Slips' value. I want to be able to keep issuing... (0 Replies)
Discussion started by: dwightlaidler
0 Replies
2. UNIX for Dummies Questions & Answers
I am a newbie Oracle DBA. All our oracle servers are hosted in AIX and Solaris Environment. I have no knowledge about this Unix O/S. So, it will be great if anyone here can suggest me any good book which will teach me the basics.
Any inputs/suggestions will be great for me. (1 Reply)
Discussion started by: sandip250382
1 Replies
3. Linux
Evening all,
Im trying to get a script that will:
Select the most 3 recent files in a specific directory
Run a command on them (like chmod)
Ask of you would like to continue
Copy the files to another directory
If a linux guru could help me out, it would be very much appreciated.
Thanks... (2 Replies)
Discussion started by: Wiggins
2 Replies
4. UNIX for Advanced & Expert Users
Scenario:
Command used to capture IPs on a host:
/usr/sbin/ifconfig -a | grep "inet" | egrep -v "inet6|0.0.0.0|192.168.100.2" | awk '{print $2}'
Following for loop used to capture interface names:
for INTERFACE in `/usr/sbin/ifconfig -a | nawk '$1 ~ /:$/ && $1 {sub(":$", "", $1); print... (3 Replies)
Discussion started by: ak835
3 Replies
5. Shell Programming and Scripting
All,
I would like to know my below requirement can be achieved in any way in Shell Scripting? I will make this requirement of mine as understandable as I can.
Requirement:
I wrote a script 'my.script' which gets user-input tablenames and puts the same into an array. Also I get other inputs... (6 Replies)
Discussion started by: bharath.gct
6 Replies
6. Shell Programming and Scripting
/usr/sbin/ifconfig -a | grep "inet" | grep -v "inet6" | grep -v "127.0.0.1" |
grep -v "0.0.0.0"|grep -v "192.168.100.2" | awk '{print $2}'
I use above command to get IP addresses on AIX boxes.Values coming here are set to a variable "Host IPs.IP Addresses" in my fingerprinting engine.
... (4 Replies)
Discussion started by: ak835
4 Replies
7. Shell Programming and Scripting
Hello Folks,
i have written a script to nullify the log files in my dev environment but the log files are not getting nullified.Please find below my script and also thank you all in advance for your help.
find /app -size +100000 -xdev -exec du -k {} \; 2>/dev/null | sort -nr |ls -1dF ... (2 Replies)
Discussion started by: Rayzone
2 Replies
8. Shell Programming and Scripting
Hi guys,
I want to execute an SQL script based on a condition.... I am writing a sample requirement...
num = {some value}
if(num == 0)
then
cat>> test.sql <<FIN
select * from table_a
FIN
else
cat>> test.sql << FIN
select * from table_b
FIN
fi
This is what i... (3 Replies)
Discussion started by: Payal Sharma
3 Replies
9. Linux
Hello all,
I need to develop an application that would be used as a simulator to test various custom algorithms. As I have never embarked on this kind of work, I need some advice:
1. Which GUI library to use in Linux, GTK+ or FLTK? The simulator application needs to output various... (2 Replies)
Discussion started by: fox_hound_33
2 Replies
10. Linux
i'm a grad student taking a UNIX course and a networks course (i have a background in C++ and JAVA). i'm trying to combine the two classes.
My questions stems from a networks programming homework assignment below:
"Using the operating system and language of your choice, develop a program to... (5 Replies)
Discussion started by: trostycp
5 Replies