Search Results

Search: Posts Made By: asheshrocky
2,409
Posted By asheshrocky
Hi Pamu, This one did the trick for...
Hi Pamu,

This one did the trick for me...thanks for your help.


filename=$1
awk -F "|" 'NF == 13 && $0 !~ /^#/ { $12=50}1' OFS=\| "$filename" > tempfile.txt
mv tempfile.txt "$filename"
2,409
Posted By asheshrocky
Oh,May i know what u expect at this place ..... ...
Oh,May i know what u expect at this place .....
I pass the Filename only from the Script....


<Script id="Dispo">
<WorkDir>/home/ntp_home/e701152/sapphire/wet/progs/JCalPara</WorkDir>
...
2,409
Posted By asheshrocky
Hi Pamu, echo "$file_name" >...
Hi Pamu,


echo "$file_name" > inputfile.txt

The code just hangs here and when i kill the process and check inputfile.txt its blank.Nothing is been written into it .

A error file is also...
2,409
Posted By asheshrocky
I did try the same code which u mentioned in your...
I did try the same code which u mentioned in your previous entry ...


#!/bin/bash
file_name=$(awk -F "[<>]" '/<Param id="LimitDis">/{print $3}' input_file)
echo $file_name >...
2,409
Posted By asheshrocky
Hi Pamu, I still face some issue passing...
Hi Pamu,

I still face some issue passing the Input file name to the script.I believe the issue is because its too big.

When i test if the process is running using ps ux i get this result
...
2,409
Posted By asheshrocky
Hi Pamu, Thanks for the reply. Is it...
Hi Pamu,

Thanks for the reply.
Is it possible to Open the InputFile and write back to the same one rather than generating a Temp file and moving it.

---------- Post updated at 01:14 AM...
2,409
Posted By asheshrocky
Hi Pamu, Seems the script works fine when i...
Hi Pamu,

Seems the script works fine when i run in unix.
But as i am very new to scripting can u please tell me how can i pass the file to this script.

Currently i just replaced the term...
2,409
Posted By asheshrocky
Replacing Data in a File
Hi All,

Have a requirement where i needs to alter the Content of File once it is generated.

The File consist of Multiple line ...range from 2000-8000 lines.
I need to change the Content of...
Forum: IP Networking 03-23-2012
1,412
Posted By asheshrocky
RPC Issue
Hi Folks,

I am facing a problem using RPC based connection between two different OS ( RHEL 5 and Windows XP).

We have a Camelot ( Cad Navigation Equipment - Running is RHEL5) which is...
Forum: Solaris 03-23-2012
1,245
Posted By asheshrocky
RPC Issue
Hi Folks,

I am facing a problem using RPC based connection between two different OS ( RHEL 5 and Windows XP).

We have a Camelot ( Cad Navigation Equipment - Running is RHEL5) which is...
3,662
Posted By asheshrocky
Trim Filename
Hi All,

I have a file named as


FAB1_600015_CONRAD.A0_7XYZ12345.000_LT-SWET.01_LTPA25L_20110622-161429_07_WFR12345_20110622-161429_20110712-125228.data.dis


I want to generate a...
2,299
Posted By asheshrocky
Thanks guys...... I hope the script work...
Thanks guys......

I hope the script work fine after using the above said suggestions...



#!/bin/sh
HOST='test'
USER='testuser'
PASSWD='test_passwd'
cd /sapp/limit
array=(`ls`)...
2,299
Posted By asheshrocky
Hi.. #!/bin/bash cd...
Hi..



#!/bin/bash
cd /sapphire/limit
array=(`ls`)
len=${#array
}
echo "The array has $len members"
i=0
while [ $i -lt $len ];
do
if [ -f "${array[i]}" -a "$( fuser...
2,299
Posted By asheshrocky
Sorry Buddy...its if [ -f...
Sorry Buddy...its


if [ -f "${Filename}"-a "$( fuser "${filename}" 2>/dev/null )" = "" ]


It dosen't work even when i have opend the same file.....
2,299
Posted By asheshrocky
Hi Buddy, I have tried using smething like ...
Hi Buddy,

I have tried using smething like


if [ -f "$Filename" -a "$( fuser "$filename}" 2>/dev/null )" = "" ]
then
echo "File is closed"
else
echo "file is open"


But i found...
2,299
Posted By asheshrocky
Hi Buddy, I am writing a script to FTP out...
Hi Buddy,

I am writing a script to FTP out files from server 1 to server 2.These files are generated by another Java application running in server 1.

Before FTP out these files i want to...
2,299
Posted By asheshrocky
Fetch PID
Hi All,

i get this output when i do PS UX


tdntp 9263 0.0 0.0 98464 3200 pts/1 S+ 14:16 0:00 vim FAB1_600015_CONRAD.A0_7XYZ12345.000_LT-SWET.01_LTPA25L_


I want to get the...
1,836
Posted By asheshrocky
Hi, Thanks for the suggestion....... But...
Hi,

Thanks for the suggestion.......
But i was not able to understand what u mean to say completely.

U mean i must FTP out the files from server 1 /sapp/data & limit directory to server 2...
1,836
Posted By asheshrocky
Hi Anchal, I am working on RHEL 5 OS.... ...
Hi Anchal,

I am working on RHEL 5 OS....

Actually my source file is generated by another java application and then move the file to /sapp/data and /sapp/limit directory.

Then i fetch these...
1,836
Posted By asheshrocky
Hi , I tried using the fuser command to...
Hi ,

I tried using the fuser command to check if the file is been accessed or not


if [ -f "$FN" -a "$( fuser "$FN" 2>/dev/null )" = "" ]
...
1,836
Posted By asheshrocky
File FTP
Hi Guys,

I have a script shown below


#!/bin/sh
cd /sapp/limit
array=(`ls`)
len=${#array
}
echo "The array has $len members"
i=0
while [ $i -lt $len ];
do
...
1,146
Posted By asheshrocky
Hi Buddy, I have tried to re modify your...
Hi Buddy,

I have tried to re modify your code as below



#!/bin/sh
cd /sapp/limit
array=(`ls`)
len=${#array
}
echo "The array has $len members"
i=0
while [ $i -lt $len ];
do
...
1,146
Posted By asheshrocky
Hi Buddy, Thanks for the solution... ...
Hi Buddy,

Thanks for the solution...

But as per ur solution it list out all files and converts to .data.dis and checks for existence in /sapp/data rite ?

But it will be better if i do...
1,146
Posted By asheshrocky
Comparing files
Hi All,

I am working on a test automation system in our Firm which requires some shell script for Cron job.Below i have mention what i am looking for in pseuso code,if someone can give me basic...
1,249
Posted By asheshrocky
Thanks a lot guys..................
Thanks a lot guys..................
Showing results 1 to 25 of 32

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