Search Results

Search: Posts Made By: vinayakatj56
11,519
Posted By vinayakatj56
Add 1 year to System date in script
Hi All,

I wanted to add 1 year to the system date in my script.

say export start_date=`date +%F`
echo $start_date
o/p of this is 2009-09-02

To this i want to add 1 year.
the output...
3,699
Posted By vinayakatj56
Any way to get the crontab back ?
Hi All,

I have typed "crontab - e" instead of "crontab -e" by mistake.
Then i checked, surprisingly the cron tab got deleted.

I wanted the crontab, is there any way to get my crontab back?
...
14,868
Posted By vinayakatj56
Hi Dcoolsam, Yes i checked. It is working...
Hi Dcoolsam,

Yes i checked. It is working properly.
Thanks a lot,,,,:)

Regards,
Vinay
14,868
Posted By vinayakatj56
Hi Dcoolsam, Thanks a lot ,,,, Your code...
Hi Dcoolsam,

Thanks a lot ,,,,
Your code suits my requirement.
But one change is needed, here it is printing the number also in echo line...
i dont want to print that,,,
how can i fix it......
14,868
Posted By vinayakatj56
Hi Franklin, I want to place the...
Hi Franklin,

I want to place the incremented value in the same old file.

say my file name is "file.txt" which has number 5 in it.

once i run the script, this value should be taken and 6...
14,868
Posted By vinayakatj56
Read a number from file and place it back
Hi All,

I want to read one number from the file.
Only one number will be there in the file.
then i have to increment the number in my script and put it back in the same file.

Is it...
1,767
Posted By vinayakatj56
is it possible import the variable ?
Hi All,

I need to hold one variable in another script.

I mean, i will be running 1st script say ScriptA which should import one variable from another script say ScriptB.
I will be...
1,791
Posted By vinayakatj56
Need help on crontab ..........!
Hi All,

I have one script. It should be scheduled in the crontab to run from 4th day to last day of every month.
I mean it should not run only on 1st, 2nd and 3rd of every month.

how can i...
32,456
Posted By vinayakatj56
"-bash: sqlldr: command not found"
hi all,

here i am trying to run one control file.
but getting "-bash: sqlldr: command not found" error :confused:
the code is given below.

sqlldr $db_username/$db_password@$db_sid...
Forum: UNIX and Linux Applications 05-20-2009
2,299
Posted By vinayakatj56
hi thanhdat, Thanks man,,, its working ,,,...
hi thanhdat,
Thanks man,,,
its working ,,, :b:

Regards
Vinay
Forum: UNIX and Linux Applications 05-14-2009
2,299
Posted By vinayakatj56
"Unable to send a mail"
hi,,

i am trying to excexute one simple script.
what it suppose to do is, just send a mail to the mentioned mail id.

here is my code..

mutt -s "Test mail" my mail id < /dev/null

its...
8,169
Posted By vinayakatj56
can you tell me how to restore?
can you tell me how to restore?
8,169
Posted By vinayakatj56
How to get the last crontab
Hi all,

can anybody tell how to get the last crontab if it is deleted.
is there any way to get the crontab back?
or it will it be staored anywhere ?
its very urgent, can anybody help for the...
3,404
Posted By vinayakatj56
still getting the same error :confused: is...
still getting the same error :confused:
is there any other way to solve this issue ?
3,404
Posted By vinayakatj56
can you please tell me what is the file and...
can you please tell me what is the file and newfile ?
is the syntax or we need to create a new file ?

i am new to this field, can you please elaborate it, so i can do the same.

i tried in...
3,404
Posted By vinayakatj56
here the problem is , same code works fine with...
here the problem is , same code works fine with no error if it is not there in "if" block. as i have shown above.
3,404
Posted By vinayakatj56
here am using Textpad. is it going to differ by...
here am using Textpad.
is it going to differ by editors?
its urgent,, can you pls help me,,,,
3,404
Posted By vinayakatj56
unexpected end of file error
hi,

i am trying to connect to sqlplus in an 'if block' from the script.
it is giving unexpected end of file error.
and it works fine if it is out of 'if block'.

if anybody have idea on...
Showing results 1 to 18 of 18

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