10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello friends,
I've been working on a solaris server,
I need to test responses of a web service using WGET command, if the response is successful, how quick it is etc.
I have scirpt like this, I modified it, i try to redirect the output of time command to total.txt but i couldn't manage, i... (4 Replies)
Discussion started by: EAGL€
4 Replies
2. Ubuntu
Hi,
I have a ubuntu box with /etc/hostname entry like abcd-lx . However, if the machine shuts down without a proper shutdown , on reboot, the enter in /etc/hostname looks like %vserverguest%
Also, /etc/hosts gets an invalid entry in place of abcd-lx.
If anyone has any idea, please help!
... (6 Replies)
Discussion started by: mnanavati
6 Replies
3. Shell Programming and Scripting
hi friends,
The code:
i=1
while
do
filename=`/usr/bin/ls -l| awk '{ print $9}'`
echo $filename>>summary.csv
#Gives the name of the file stored at column 9
count=`wc -l $filename | awk '{print $1}'`
echo $count>>summary.csv
#Gives just the count of lines of file "filename"
i=`expr... (1 Reply)
Discussion started by: rajsharma
1 Replies
4. Solaris
Hi,
Can someone explain in detail what 'uptime' ,'last reboot' and 'who -b' commands do in solaris.
this commands are not executing in every solaris box. why this is happening. Has solaris got some inbuilt commands into it. If yes then where i have found them?
Thanks,Soubhik (6 Replies)
Discussion started by: soubmukh
6 Replies
5. Shell Programming and Scripting
Hello Friends,
I have written a code on a Linux box, however, am getting issues while running it on a Solaris server. The issue with Sed command is sortd out, however, am still lokking for solutions with expr command. Here is the issue,
Linux :
bash-2.03$ expr match singh@test.com... (10 Replies)
Discussion started by: suffisandy
10 Replies
6. Shell Programming and Scripting
ps -e -o pcpu,pid,cmd --sort pcpu | sed '/^ 0.0 /d'|awk '{print $2}'|grep -v PID
Gives the output:
4482
4023
5912
I want to operate on each pid in the output. How to do so. (2 Replies)
Discussion started by: proactiveaditya
2 Replies
7. UNIX for Dummies Questions & Answers
scp file="myfile.txt" todir="user@somehost:(M:drive:/somepath/)"/
Not sure I need it to go to a specific drive on the windows box (1 Reply)
Discussion started by: xgringo
1 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I need a clarification.
Is there any difference between AIX box and Sun Solaris box?
The bzip command with -c option works in AIX box and the same does not work in Sun Solaris box.
Can anyone please explain if there is an implementation difference in both these boxes for the shell... (1 Reply)
Discussion started by: nisha4680
1 Replies
9. Shell Programming and Scripting
HI All,
I need a script to reboot a linux box from a windows box.
The script needs to run automatically whenever a sitescope alerts with an error message.
Have searched for this in the forums, but could not get something relative.
Pls. let me know the various alternatives we have to do... (2 Replies)
Discussion started by: Crazy_murli
2 Replies
10. UNIX for Dummies Questions & Answers
Hi...
question is this:
How do I mount an LVD hotswap scsi drive in bay #2 on a netra using the mount command? volmgt doesn't seem to mount it and/or I don't know how to view the drives data if it's formatted which it may not be. This drive is not new out of the box so I'm not sure.
... (4 Replies)
Discussion started by: soulshaker
4 Replies