Search Results

Search: Posts Made By: radhika
3,941
Posted By radhika
ftp error
All,

I am getting the following error while I am trying to ftp a file. I am able to log into the destination server. But, when I try to put the file, I get the following error: 426 Connection...
46,182
Posted By radhika
I figured it - it's -r option. ex: mailx...
I figured it - it's -r option.

ex: mailx -r $returnaddress -s $subject toaddress@xxx.com < $mail_mesgfile
46,182
Posted By radhika
I am sorry didn't mean to offend anybody. Just...
I am sorry didn't mean to offend anybody. Just am desperate as it is a production issue. I figured some body must have gone through the same issue and was hoping for some help, that's all.
...
46,182
Posted By radhika
I am not finding much on this, any pointers are...
I am not finding much on this, any pointers are appreciated.

ThankYou,
Radhika.
46,182
Posted By radhika
mailx- can we change the from address in the email that is sent out.
Hello,

Is there anyway to change the from address in the email sent using mailx command?

I have the following command:
mailx -s $subject xxx@xxxx.com < $mail_mesg

This defaults to the...
6,460
Posted By radhika
I am on SunOS ussun0s 5.8 Generic_108528-22...
I am on
SunOS ussun0s 5.8 Generic_108528-22 sun4u sparc SUNW,Ultra-Enterprise-10000
6,460
Posted By radhika
Vino, Just out of curiosity, so how did the code...
Vino, Just out of curiosity, so how did the code work for you? What env. were you using.
6,460
Posted By radhika
I get the following error when I try the...
I get the following error when I try the following (I am using kshell):

Code:
# You should be having $filedate with you.
fdate=$(date --date="$filedate" +%Y%m%d%H%M%S)

...
6,460
Posted By radhika
Could you pl. see why if I put $filedate in the...
Could you pl. see why if I put $filedate in the following command it does not work. I need to get filedate value in 14 char format.

# assigns CURRENT time to the variable 'fdate'...
6,460
Posted By radhika
fdate- if a data file is created with actual data...
fdate- if a data file is created with actual data then first 14 chars of the data file will have the datetime stamp(14char format) in the data file for each record.

If an empty data file is...
6,460
Posted By radhika
In the following command (fdate=`$filedate...
In the following command (fdate=`$filedate +%Y%m%d%H%M%S`
) if I put the filedate I get the below error. That's why I was trying to do date=$filedate

Output............................
fdate1:...
6,460
Posted By radhika
date is not getting the filedate value.
I have the following script. I am trying to get the date time when an empty file was created. In my situation if an empty file is created it won't be touched again. At the end of the script I...
3,263
Posted By radhika
ThankYou for the correction. Although, in...
ThankYou for the correction.

Although, in my case the file when created will be an empty file and will not be touched again.

Regards,
Radhika.
3,263
Posted By radhika
I got it.... filedate=`ls -al test.txt | cut...
I got it....

filedate=`ls -al test.txt | cut -f2-3 -d'0' | cut -f1-4 -d' ' `
echo $filedate

date=$filedate
dte=`date +%Y%m%d%H%M%S`
echo $dte

Result is:
20050726135232

Thanks! Vino...
3,263
Posted By radhika
okay I modified my script to say: "test.sh"...
okay I modified my script to say:

"test.sh" 7 lines, 133 characters
fdate=`ls -al test.txt | cut -f2-3 -d'0' | cut -f1-4 -d' ' `
echo $fdate
mydate=`$fdate+%Y%m%d%I%M%S`
echo $mydate

I get...
3,263
Posted By radhika
I tried to clip the date from ls -al command: ...
I tried to clip the date from ls -al command:

file_date=`ls -al test.txt | cut -f2-3 -d'0' | cut -f1-4 -d' ' `
echo filedate before conversion is: $file_date

I get the following result:...
3,263
Posted By radhika
How to get the Date time when the file was created.
sorry for the title of this thread-
I figured out how to capture empty variable by using-
if [ $?fdate ]
then
........

This thread originally had two parts in it (one for capturing empty...
2,385
Posted By radhika
Oh, I missed "do" Thanks!
Oh, I missed "do"
Thanks!
2,385
Posted By radhika
sort unexpected error?
I have the following script:

mysort.sh:
#!/bin/ksh
for i in `ls`
sort -bfu $i > sort_$i
wait
mv sort_$i $i
wait
done
exit 0

I get the following error:...
61,744
Posted By radhika
Amit, I tried sed '$!N; /^\(.*\)\n\1$/!P; D'...
Amit,

I tried sed '$!N; /^\(.*\)\n\1$/!P; D'
to remove duplicates. It didn't work:

ex:
file test1.txt has the following rows:
123
123
145
123
123

I used the following command to...
61,744
Posted By radhika
I am not sure if I want to reload all that data...
I am not sure if I want to reload all that data again into another table and .....

As I am pulling data from a table using select * from table name into a text file and then doing sort -u file1 >...
61,744
Posted By radhika
No, my data is not sorted.
No, my data is not sorted.
61,744
Posted By radhika
Hi Amit, >> sed '$!N; /^\(.*\)\n\1$/!P;...
Hi Amit,


>>
sed '$!N; /^\(.*\)\n\1$/!P; D'

Could you explain the command - bit by bit if you don't mind.

Thanks!
61,744
Posted By radhika
fastest way to remove duplicates.
I have searched the FAQ - by using sort, duplicates, etc.... but I didn't get any articles or results on it.

Currently, I am using:
sort -u file1 > file2 to remove duplicates. For a file size of...
40,846
Posted By radhika
What do you mean when you say open office on...
What do you mean when you say open office on Linux? Please explain.
Showing results 1 to 25 of 51

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