Search Results

Search: Posts Made By: angshuman_ag
Forum: Solaris 07-26-2010
2,010
Posted By angshuman_ag
.XDefaults - maxDocumentSize Issue
Hi All,
I ran into "Memory Buffer Full" issue on my Solaris 8.0 machine. After googling, I found out that it is the maxDocumentSize value issue. (Although I do not have this entry in the current...
2,225
Posted By angshuman_ag
Hi, One issue here. This line STOP...
Hi,
One issue here.
This line


STOP TRANSFER TO HOST1 /usr/bin/myscript


is like this


"STOP TRANSFER TO HOST1" /usr/bin/myscript




So, the sed command...
2,225
Posted By angshuman_ag
Thanks AGAIN to you for solving my issue :)
Thanks AGAIN to you for solving my issue :)
2,225
Posted By angshuman_ag
SED:: Using variable while grouping
Hi,
I have the following script :-


#!/bin/csh -f
set var="HOST2"
sed -e 's/\(.*TRANSFER TO\).*\(usr\)/\1 "$var" \2/' tempFile



tempFile contains:


STOP TRANSFER TO HOST1 ...
53,522
Posted By angshuman_ag
Pseudocoder - Thanks for your help. Your posts...
Pseudocoder - Thanks for your help. Your posts are very helpful !
53,522
Posted By angshuman_ag
Both the "if" formats I tried. If gives me the...
Both the "if" formats I tried. If gives me the foolowing error :


if: Badly formed number


Thinking.... what is this problem now.
53,522
Posted By angshuman_ag
It gives error in either case "No file for...
It gives error in either case

"No file for $0
"

Also, in the 1st case, that "set" solves the issue, but the "if" syntax has some problem I guess ! Tried other syntaxes, but somehow stuck.
53,522
Posted By angshuman_ag
#!/bin/csh -f :: What does it mean
Hi,
I have a script which I need to modify. It contains the following statement at the beginning -

1. What does this mean ?

#!/bin/csh -f


2. If I run the following code in a script on...
4,838
Posted By angshuman_ag
Hi, Why I need this is so that I can delete the...
Hi,
Why I need this is so that I can delete the matching line from the file. Or I should be able to replace it with a BLANK.

I saw that if I use option "d" in sed command, it echos all the lines...
4,838
Posted By angshuman_ag
SED - Match a line from a File
Hi,
I want to match a line which exists in a file. I have written a test script similar to below -
The content of the file file.txt would be like this -

/usr/bin/1234.xcf
/usr/bin/3456.xcf...
15,092
Posted By angshuman_ag
Thats fine. Thanks ! You should read the Rule...
Thats fine. Thanks !
You should read the Rule #2 of this forum -
(2) No negative comments about others or impolite remarks. Be patient.
15,092
Posted By angshuman_ag
Like I said, it requires inputfilename. So, if I...
Like I said, it requires inputfilename. So, if I skip everything and just type convert, then it will show the usage as -

convert [-f] [-outdir] inputXCFFile
15,092
Posted By angshuman_ag
If I give a bogus option flag like you said, it...
If I give a bogus option flag like you said, it ignores the option and does the conversion successfully. It just requires the input filename. If provided with other flag like -f or -outdir, it will...
15,092
Posted By angshuman_ag
Hi, These are custom files which have their own...
Hi,
These are custom files which have their own format. There is no problem with the conversion or the tool. Its working fine. The only problem is storing its output string.

The help which it...
15,092
Posted By angshuman_ag
Hi, As I have previously said, its a C SHELL on...
Hi,
As I have previously said, its a C SHELL on Solaris 8. And, again I will post the "myScript". It looks like this after your suggestion-

set output=`/usr/bin/convert -f inputfile.xcf`
echo...
15,092
Posted By angshuman_ag
I have already laid out the entire script. Its a...
I have already laid out the entire script. Its a custom 3rd party tool which return a string always to the console in case of error or success. So, I want to capture that string output in a variable...
15,092
Posted By angshuman_ag
Hi, It does not seem to work.
Hi,
It does not seem to work.
5,045
Posted By angshuman_ag
What if the file somefile.txt is replaced with an...
What if the file somefile.txt is replaced with an empty somefile.txt ? At that time still there will be an entry in the inode table for this file. Right ?
15,092
Posted By angshuman_ag
I want to run this command from a Shell Script in...
I want to run this command from a Shell Script in the CSHELL on Solaris 8 and want to store the output in a variable.
5,045
Posted By angshuman_ag
Thanks to all of you... M learning !
Thanks to all of you... M learning !
5,045
Posted By angshuman_ag
Thats rocking !
Thats rocking !
5,045
Posted By angshuman_ag
Thanks pseudocoder ! Exactly the same scenario is...
Thanks pseudocoder ! Exactly the same scenario is happening. So, how do we define this behavior ? Is it correct ?
5,045
Posted By angshuman_ag
Can you try the other way and see if you empty...
Can you try the other way and see if you empty the file, the the while loop stops immediately or does it first finishes its old execution fully and then stops ?
5,045
Posted By angshuman_ag
Hi, Even I thought so. But I see that is not...
Hi,
Even I thought so. But I see that is not the behavior. I tried even this


cat itemList.txt |
while read item
do
set $item
## do operation with $item
done


In both the cases...
5,045
Posted By angshuman_ag
Very Basic Question regarding "while" loop
Hi,
I have a loop like this -


while read item
do
// fire insert query
done < itemList.txt


The itemList.txt has say, 1000 records. Now what I do is that rhough another program, I...
Showing results 1 to 25 of 83

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