Search Results

Search: Posts Made By: vivek_damodaran
1,987
Posted By vivek_damodaran
Perfect! that worked. Thanks Cero.
Perfect! that worked. Thanks Cero.
1,987
Posted By vivek_damodaran
Thanks Cero. What if that time is a...
Thanks Cero.

What if that time is a variable. Say in the above example '10:14' is a variable, how can I pass it in the TZ command. I tried, but it gave an error message :(

$ x=$(date +%H:%M)
$...
1,987
Posted By vivek_damodaran
Convert TZ output to a different format
Friends,

I am trying to convert my local server timezone EST to UTC and for which I used the TZ command, see below

$ date
Thu Dec 6 10:14:14 EST 2012
$
$ TZ=UTC date -d '10:14 EST'
Thu Dec...
4,614
Posted By vivek_damodaran
Thank you guys. Thanks for all the suggestions. I...
Thank you guys. Thanks for all the suggestions. I was able to resolve my issue.
4,614
Posted By vivek_damodaran
Help with sed command - find a string between two characters
Hi,

I have a xml file (Config.xml)

<Header name="[Measure]" TDate="[COB]" PDate="[PCOB]">
<Config>
{"config" { "Nation" "Pri:[Region]|Sec:[SecRegion]"}}
...
6,319
Posted By vivek_damodaran
Sorry if you read the earlier post, you could see...
Sorry if you read the earlier post, you could see solutions based on 'echo'. That's why I corrected my statement in the later post saying its a big xml file and 'echo' doesn't suit.

Anyways thanks...
6,319
Posted By vivek_damodaran
Sorry, I should have made it clear in my first...
Sorry, I should have made it clear in my first post.

The xml itself is a big file, so unfortunately I can't try the echo option. Also the insert/update should be committed using the solution.
...
6,319
Posted By vivek_damodaran
Insert/Update using sed
Hi,

I have a xml file (Config.xml) with following entry

<Date="" Node1="50" Groups="20">
Now I want to use sed to insert/update the Date field with the latest date say - 20120711. I can't use...
11,281
Posted By vivek_damodaran
Searching a string in a file using perl
Hi

I would like to read a file using perl and search for a string (last entry). Then read that into an array and do further grep

File content for ex:

comp=a,value=30,runtime=12,type=lic...
54,869
Posted By vivek_damodaran
Well my first code worked when I changed the mail...
Well my first code worked when I changed the mail path to /tmp/mail.tmp

anyways thanks for your help.
54,869
Posted By vivek_damodaran
That also didnt work :( ...now I tried with a...
That also didnt work :( ...now I tried with a different script


export MAILTO="user1@mail.com"
export MAILCC="user2@mail.com"
export FROM="group@mail.com"
export SUBJECT="My report"
export...
54,869
Posted By vivek_damodaran
DGPickett, Unfortunatly No...I tried with...
DGPickett,

Unfortunatly No...I tried with one e-mail account and its giving me the same error message.
54,869
Posted By vivek_damodaran
sendmail script throwing an error "No recipient addresses found in header"
Hi,

I am using following code to send an e-mail with attachment and body.


echo "To: user1@mail.com,user2@mail.com" > mail.tmp
echo "Cc: user3@mail.com,user4@mail.com" >> mail.tmp
echo...
20,305
Posted By vivek_damodaran
Thanks guys....that worked
Thanks guys....that worked
20,305
Posted By vivek_damodaran
finding multiple files using find command
I am trying to search for 2 files using the find command as below

find -name file1.txt -a -name file2.txt

It doesn't give a result although the files exist in the folder, however when i try the...
40,039
Posted By vivek_damodaran
I tried running the script with -x option and got...
I tried running the script with -x option and got the below message.

ksh -x script.ksh

+ [ -e /path/filename1.20101001_18_18_40.tar.gz /path/filename1.20100930_18_18_40.tar.gz...
40,039
Posted By vivek_damodaran
Guys - I am looking for a one line command, if...
Guys - I am looking for a one line command, if possible please

What Operating System? - Linux
What Shell? - ksh
Do any of the filenames contain a space character? - No, its only alphabets and...
40,039
Posted By vivek_damodaran
Checking the existance of multiple files
I am trying to execute the following command to check the existance of a file (which has a date timestamp on it). If there are more than one file, then also it should give me 'success' result.

...
8,413
Posted By vivek_damodaran
Handling ftp error
I have a script which connects to remote server and ftp the files
It works fine, however if there is any failure in ftp connection can it be handled???


ftp log

ftp session start time is: Thu...
17,813
Posted By vivek_damodaran
Thanks Quine...I got the result in a variable and...
Thanks Quine...I got the result in a variable and then tried "cut -d" on it
17,813
Posted By vivek_damodaran
how to assign multiple values in a pl/sql script
Hello friends,

This query is with regards to a script (pl/sql) which returns multiple values.

Please see below script wherein the query returns a single value and is assigned to a single...
Forum: HP-UX 05-13-2008
8,317
Posted By vivek_damodaran
Era, Its a HP-UX machine #uname -a ...
Era,

Its a HP-UX machine

#uname -a
HP-UX byfusp01 B.11.11 U 9000/800 909053493 unlimited-user license
Forum: HP-UX 05-13-2008
8,317
Posted By vivek_damodaran
how to trace the logs
Hi,

Last day, In one of our unix boxes there was an issue wherein few of the directory structures were missing / got deleted.

Is there any way by which we can find how it happened, I mean by...
Forum: HP-UX 04-07-2008
55,194
Posted By vivek_damodaran
Thanks vbe and RTM. It seems I will have to...
Thanks vbe and RTM.

It seems I will have to check with my UNIX admin as the user is 'root'

byfusp01 $ ll inetd.conf
-r--r--r-- 1 root sys 5462 Jun 29 2006 inetd.conf
...
Forum: HP-UX 04-07-2008
55,194
Posted By vivek_damodaran
umask for an ftp account
Hi,

I have an ftp account which is used for transferring files to a UNIX box.
eventhough the permissions on the source box for the files are 777, when it reaches the destination node via this ftp...
Showing results 1 to 25 of 38

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