Search Results

Search: Posts Made By: Devesh5683
1,318
Posted By Devesh5683
thanks clx, it worked.
thanks clx, it worked.
1,318
Posted By Devesh5683
Error while reading variable from a file in perl script
I have a file abc.ini and declared many variables in that file, one of the variable(DBname) value I am trying to read in my perl script but getting error.


File abc.ini content

# database name...
1,446
Posted By Devesh5683
Problem connect to a different server then do sudo login and finally run some scripts and get result
I have to write a shell script in my current linux server and I have to connect to a different server then do sudo login and finally run some scripts residing in a particular directory and get...
1,788
Posted By Devesh5683
Using UNIX command in perl script.
I wish to know if there is any limitation in using unix commands in perl script or it is just we should avoid using them in our perl script.

For e.g Below is the command to get the recent file in...
1,725
Posted By Devesh5683
Thanks bipinajith, Corona688 for the reply. The...
Thanks bipinajith, Corona688 for the reply.
The code I pasted is collecting data and processing millions of records, its displaying negative zero in very few cases where result of the formula is...
1,725
Posted By Devesh5683
Decimal number calculation problem
I have a below snippet of code from my perl script and its causing a problem when the output of $lTAX is 0 (zero) its getting displayed as -0.00. I want output to be 0 not -0.00. Any help would be...
1,494
Posted By Devesh5683
Problem in passing date to external function from perl script.
my $sysdate = strftime('%Y-%m-%d', localtime );
biDeriveByDate('Table_Str',$sysdate,\@lIndx,\@lResVals)


In a perl script, when I'm trying to pass $sysdate to some external function it's not...
5,845
Posted By Devesh5683
Thanks everyone. I incorporated suggestions made...
Thanks everyone. I incorporated suggestions made by bakunin, methyl and macnamare and added below if condition inside for loop. Its working fine in my test script and I believe this should fix the...
5,845
Posted By Devesh5683
Vbe I will code tags from next time, thanks for...
Vbe I will code tags from next time, thanks for reminding.

Below is OS details:
Linux pb3n1 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

Disk usage is...
5,845
Posted By Devesh5683
unusual problem with cp command
I have made a simple script to zip a file then first copy it to a specific directory using cp command then move it to another directory. Files are getting generated at regular intervals in the dir....
38,453
Posted By Devesh5683
To change permissions in mv or cp
Is there any option with mv or cp command so that a file permissions and name of the file can be changed in single mv or cp command. I searched man mv but doesn't found any option like that.
2,226
Posted By Devesh5683
Make entries in crontab file
I have created a shell script "abcd.sh" and script should run after every 10 min., For that I will create below entry in the crontab file by using command crontab -e
*/10 * * * *...
3,610
Posted By Devesh5683
-bash-3.2# uname -a Linux cmd3n1 2.6.18-194.el5...
-bash-3.2# uname -a
Linux cmd3n1 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
3,610
Posted By Devesh5683
Record too long error while running awk
I have written below script to add substring in a file containing fixed length record, but when I run below script I get error as:
ERROR:
awk: record `22503004502488344040...' too long

My fixed...
3,851
Posted By Devesh5683
Thanks CarloM it working fine now, thanks...
Thanks CarloM it working fine now, thanks arun.ijhs.klm for your time.
can you tell me the best way to debug any shell script in general
3,851
Posted By Devesh5683
Thanks for the reply.. The script: awk...
Thanks for the reply..

The script:
awk 'BEGIN {sum_a=0;sum_b=0;a=substr($0,389,3);b=substr($0,399,3) }
{
printf"%d\t\t%d",a,b;
sum_a = sum_a+a;
sum_b = sum_b+b;
}
END...
3,851
Posted By Devesh5683
Add substring in a file containing fixed length record.
I am new to awk and writing a script using awk. I have file containing fixed length records, I wish to extract 2 substring(each substring is padded with zeros on left e.g 000000003623) and add each...
12,836
Posted By Devesh5683
How to use array values after the loop.
- I m retreving values from database and wish to use those values later in my shell script. I m placing these values in an array da_data but outside loop array is empty.Problem is its treating array...
4,903
Posted By Devesh5683
thanks for the help
thanks for the help
4,903
Posted By Devesh5683
Error connecting oracle from inside while loop
Hi,

I m trying to connect oracle database from inside while loop.
I m trying to put the output of sql query in a flat file.
Anyone please help me out.

cat $FILE_NAME | \
while read da_name...
4,946
Posted By Devesh5683
Try this..
set `wc -l file_name`
count=$1
echo $count
5,400
Posted By Devesh5683
- u can simply zip multiple files into one file...
- u can simply zip multiple files into one file using zip command
- then send that zip file as attachment in the mail


devesh
Showing results 1 to 22 of 22

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