9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi I am trying the following in my bash script which logs into my machine and runs a command. Trying to solve this using expect.
The first expect statement is hit and it enters the address "10.10.0.10" but when the second expect statement is hit it exits
#!/bin/bash
expect -c '
spawn... (2 Replies)
Discussion started by: skorada
2 Replies
2. Shell Programming and Scripting
Dear All,
I have script.
Dest=""
IFS='
'
for translation in $(echo $MY_MAP)
do
t1=$(echo $translation | cut -d"=" -f1)
t2=$(echo $translation | cut -d"=" -f2| cut -d"," -f1)
if
then
Dest=$UNX/$u_product_path/$u_study_path/$UNXTR/$t2
break;
... (4 Replies)
Discussion started by: yadavricky
4 Replies
3. Filesystems, Disks and Memory
Hello,
someone needed VPS with SSD caching, he want to use server for websites hosting. What does that mean, this SSD caching and is it optimal solution for this? Also i listen some SSD dont like too much of writting so how one can recognise certain SSD is made the way that its not destroyed... (1 Reply)
Discussion started by: postcd
1 Replies
4. Shell Programming and Scripting
Hi,
I have a file with 270 column.
5.5 8.8 9.6 5.4...............9.9 7.0 3.4
.
.
.
.
.
8.8 5.7 6.3 4.1 3.8 9.9...........5.5 6.4 3.2
The last two values are my mean and std. I want for every cell content subtract it with the mean and divide by std and output the values
example... (1 Reply)
Discussion started by: Diya123
1 Replies
5. Shell Programming and Scripting
Nobody cared about the original post, or perhaps it was a bit difficult to guess.
Therefore I am including a poll here.
nawk -F'+' '
{i=NF;for(;i;i--)if($i)w++}
END{
for(k in w){c=w;x=xk",";if(c>m)m=c}
for(;m;m--)if(m in x)print m,x
}
' <(man nawk) (6 Replies)
Discussion started by: colemar
6 Replies
6. Shell Programming and Scripting
How would you make sure that a shell script (or a portion thereof) does not run (it waits or it terminates with error) when another instance of it is already running? (11 Replies)
Discussion started by: colemar
11 Replies
7. Shell Programming and Scripting
Most shells flavors do not have associative arrays a.k.a. maps.
How would you emulate an associative array?
I had this problem once and found a working solution, but I don't want to spoil the game hence I wont tell it.
Wonder if anyone comes up with something better. (5 Replies)
Discussion started by: colemar
5 Replies
8. UNIX Desktop Questions & Answers
Inspired by Window Manager of the Year threads from LinuxQuestions.org
Like these: 2002 | 2003 | 2004 | 2005 | 2006
I wonder what WMs are used by UNIX people ...
People sometimes select diffrent WMs for (old and slow) laptop and (overpowered) workstation, that is why poll allows multiple... (8 Replies)
Discussion started by: vermaden
8 Replies
9. Shell Programming and Scripting
Hi,
I am unable to get idea, how to write the script like multiple choice exam model script , how to specify the welcome to the exam(name) and if he select
option then it has to enter into the exam , then choosing the answers,next question and going to previous question.
Thanks & Regards
... (0 Replies)
Discussion started by: palreddy7
0 Replies