10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I got these entries in a file
alias server.domain.com='ssh 192.168.1.1@user1 '
alias server1.domain.com='ssh user2 @192.168.1.1'
alias server1.domain.com='ssh user3@192.168.1.1'
In the above lines, last line is the correct format. The first is IP@username, has got a space after the... (9 Replies)
Discussion started by: anil510
9 Replies
2. Shell Programming and Scripting
for i in $(condition ONE);do for e in $(CONDITION TWO);do
if ; then
command 1
command 2
command 3
else if ; then
command 1
command 2
command 3
else if ; then
... (6 Replies)
Discussion started by: elilmal
6 Replies
3. Shell Programming and Scripting
i have a requirement to search a pattern1 and once the pattern1 is found i have to go up and search pattern2 and if pattern2 is found i have to search down for pattern3 and pattern4. once this cycle is compelted, again i have to search pattern1 and pattern2,3,4
i am able to do this by opening... (9 Replies)
Discussion started by: tnvanathy23
9 Replies
4. Shell Programming and Scripting
Hi All,
File1.txt
File2.txt
Above are the two input file's:
Always I use to get three rows for File1.txt
File1.txt (fixed width) 2nd line i will get date and 3rd record i will get a number.
File2.txt (Pile delimeter) will contains 'n' number of records were header & footer is... (4 Replies)
Discussion started by: kmsekhar
4 Replies
5. AIX
Hi all,
I'm new in this forum.
I'm looking for the difference between the HACMP commands with the prefix "cl" and "cli".
The first type are under /usr/es/sbin/cluster/sbin directory and the second are under /usr/es/sbin/cluster/cspoc directory.
I know that the first are called HACMP for AIX... (0 Replies)
Discussion started by: peppix
0 Replies
6. UNIX for Dummies Questions & Answers
can anyone please explain my below statement, i am confused.
if || \
|| \
|| \
||
then (1 Reply)
Discussion started by: kd09714
1 Replies
7. Shell Programming and Scripting
I want to log into a remote server transfer over a new config and then backup the existing config, replace with the new config.
I am not sure if I can do this with BASH scripting.
I have set up password less login by adding my public key to authorized_keys file, it works.
I am a little... (1 Reply)
Discussion started by: bash_in_my_head
1 Replies
8. Solaris
Hi,
The C code we've written work ok on Mac, but make a " segmentation fault" when running on SUN. One potential bug is complex.h because the complex.h in the lib/ is licensed by Apple. Does anybody know how to add in complex.h into lib/ on the SUN so we can deal with complex numbers in our code?... (3 Replies)
Discussion started by: xtong
3 Replies
9. Programming
Hello all,
i've written a small piece of code that will read commands from standard input and executes the commands.
Its working fine and is execting the commands well. Accepting arguments too. e.g
#mkdir <name of the directory>
The problem is that its not letting me change the directory i.e... (4 Replies)
Discussion started by: Phrozen Smoke
4 Replies
10. Shell Programming and Scripting
Hi,
I did a lot of search for this but I could not find it, so I am posting it here....Please help.
I have a situation where I need to do polling or sleep for a while...here is what I have..
#! /usr/bin/sh
job1 runs > result1.txt
RESULT1_CNT=`wc -l result1.txt | awk '{ print $1 }'`... (1 Reply)
Discussion started by: mgirinath
1 Replies