Search Results

Search: Posts Made By: vishal_vsh1
3,500
Posted By vishal_vsh1
drbd module compiling error for Kernel
Hi I am trying to install drbd8 via apt-get on ubuntu10

sudo apt-get install drbd8-source
[sudo] password for vishals:
Reading package lists... Done
Building dependency tree
Reading state...
32,508
Posted By vishal_vsh1
Since i don't manage the mail server so i have no...
Since i don't manage the mail server so i have no idea. But you may be right.
I will keep the conversation open with support guy in my company and try to investigate on your suggestion.
32,508
Posted By vishal_vsh1
Yes, mailq was showing 100s of mails in the...
Yes, mailq was showing 100s of mails in the queue, apparently send mail started working yesterday afternoon and all messages got delivered. Thought my problem is solved but i am not enjoying it.
I...
32,508
Posted By vishal_vsh1
I checked the guy who manages the corp server but...
I checked the guy who manages the corp server but since mails are going fine to my gmail or yahoo id as per my initial mail.
even with in our company mails are flowing through that is why low disk...
32,508
Posted By vishal_vsh1
sendmail error - 452 4.3.1 Insufficient system resources
Hi All,
I am using svnnotify (which is available on net) script to send svn commit notification.
Everything was working fine up to yesterday but from yesterday i started seeing error.
...
2,694
Posted By vishal_vsh1
I hope this is done now.
I hope this is done now.
3,888
Posted By vishal_vsh1
Please paste your command/script which you are...
Please paste your command/script which you are using.
2,563
Posted By vishal_vsh1
try some thigh like this #!/bin/bash ...
try some thigh like this

#!/bin/bash

for JOBNAME in [1..150]
do
eval /path/ dsjob -logdetail projectname Job_$JOBNAME /path/ &
done

Here Job_1 ... Job_150 will be name of your job.
1,420
Posted By vishal_vsh1
for i in $strLst > do > tmp=`(echo $i | grep...
for i in $strLst
> do
> tmp=`(echo $i | grep ^-) || (echo $i | grep "[; : ' , ? { = ]")`
> if [ "x$tmp" != "x" ]; then
> ierr=1
> fi
> done
4,454
Posted By vishal_vsh1
for i in `ls` do file=echo $i | tr -d " " ...
for i in `ls`
do
file=echo $i | tr -d " "
mv $i $file
done
2,608
Posted By vishal_vsh1
exit status 0 means the previous command return...
exit status 0 means the previous command return is true, which means this was executed correctly.
$? gives the return of the previously executed command.

you are executing
echo $filename echo...
3,185
Posted By vishal_vsh1
the man page was useful.
the man page was useful.
3,706
Posted By vishal_vsh1
@Chihung Thanks for explaining with comment. ...
@Chihung
Thanks for explaining with comment.
This is now readable for amateur for awk like me.
6,734
Posted By vishal_vsh1
There are few tools available to convert ebcdic ...
There are few tools available to convert ebcdic to ascii.
Free Online EBCDIC to ASCII Text Converter (http://www.pacsys.com/ebccnv.htm)

The dd (data definition) utility can do the conversion....
Forum: Linux 02-23-2012
8,930
Posted By vishal_vsh1
Every thing in Linux is considered as file. ...
Every thing in Linux is considered as file.

you can run following command to know the type of the file.

$ file /sbin/iptables
/sbin/iptables: ELF 64-bit LSB executable, x86-64, version 1...
38,882
Posted By vishal_vsh1
Not possible, it is working for me on my linux...
Not possible, it is working for me on my linux system.

$ for i in "txt gz fie"
> do
> echo $i
> done
txt gz fie

can you paste your script or whole command which you are using?

----------...
38,882
Posted By vishal_vsh1
for i in "txt csv pdf gz" do mv...
for i in "txt csv pdf gz"
do
mv /usr/bin/sou/*.$i /usr/bin/sou/temp/
doneyou can use this loop for any logic.
38,882
Posted By vishal_vsh1
why not just mv /usr/bin/sou/*.txt...
why not just

mv /usr/bin/sou/*.txt /usr/bin/sou/temp/

This is much lighter.
1,262
Posted By vishal_vsh1
echo "$A" | cut -d/ -f4 -d is deliminator...
echo "$A" | cut -d/ -f4

-d is deliminator which is "/"
-f is the field number c is the 4th field.
2,694
Posted By vishal_vsh1
Right Methyl... livisbr, do you really need...
Right Methyl...

livisbr, do you really need 1000 lines above and below the error? you can make it 100 or 200 that should be enough for you to get the cause of error.
2,694
Posted By vishal_vsh1
Livisbr, As i said i haven't tested and expected...
Livisbr, As i said i haven't tested and expected you to fix the run time issue if any... I have given you almost ready script.

here is the script with some fixes.

#!/bin/bash
previousSearch=0...
Forum: Red Hat 02-17-2012
9,333
Posted By vishal_vsh1
ok let me give you an example. If you write...
ok let me give you an example.

If you write a script in which you put some operation which only root can do, for example reading shadow file etc.. and make that script executable by everyone... ...
Forum: Red Hat 02-17-2012
9,333
Posted By vishal_vsh1
if fdisk has following permission -rwxr-xr-x 1...
if fdisk has following permission
-rwxr-xr-x 1 root root 99400 2010-03-22 10:57 fdisk

Then you should be able to run this. try
/sbin/fdisk -h
you should be able to get the help page.

Now...
2,694
Posted By vishal_vsh1
try this. #!/bin/bash previousSearch=0 ...
try this.
#!/bin/bash
previousSearch=0
while true;
do
Lines=$(cat /var/adm/messages | grep -n ERROR | cut -d ":" -f1) #to get the all lines numbers which has word ERROR
for i...
2,694
Posted By vishal_vsh1
This is not possible by tail command to predict...
This is not possible by tail command to predict when ERROR is coming and capture the 10 lines before that, instead of this, script can read the file in a loop every time where it left and parse the...
Showing results 1 to 25 of 31

 
All times are GMT -4. The time now is 09:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy