Search Results

Search: Posts Made By: k_oops9
4,439
Posted By k_oops9
Hp UX
I am using HP -UX .

Under /etc/ I have 'rc.config.d' folder which shows many files/scripts.

Do I have to create a script under this folder 'rc.config.d'?
Can I give any name to the script...
4,439
Posted By k_oops9
file deletion at Server startup
Thanks sarmakdvsr for your reply.

But I wanted the files to be deleted during the Unix server start up only.

Can anyone help me for this.

Thanks
4,439
Posted By k_oops9
File deletion when server restarts
Hi,

In a shell script I am makin use of 3 files f1,f2 and f3.txt.
When the Unix server is restarted I want to delete all these 3
files if they are existing.

( I suppose I will have to use...
3,134
Posted By k_oops9
Thanks
Thanx moxxx68 and bhargav, it works!
3,134
Posted By k_oops9
background process
Hi,

In shell script when I use
script1 >> filelog
the echo statments of script1 gets printed in the filelog
but when I try to run script in background i.e,
script1 & >> filelog
nothing gets...
7,560
Posted By k_oops9
comparing 2 dates
hi ,

I have two variables both containg dates,

x= `date`
and
y= `date'

their format being -> Fri Nov 12 22:59:50 MST 2004

how do I compare which one is greater.

->Can dates be...
2,392
Posted By k_oops9
file related issue
Hi all,

Anybody knows how to write a script to
open a file and store the weekday(mon-sun) on first line and current datetime on
the second line of the file.
If file doesn't exist, create a...
3
8,899
Posted By k_oops9
Thanks
Thanks perderabo,

2 lines of code works. Thanks again.

One more thing, if server is rebooted, then
any idea how I will be able to restore the
seconds.

If suppose the script is invoked on...
2,964
Posted By k_oops9
thanks
Thank You Zazzybob
3
8,899
Posted By k_oops9
timer
Hi all,


Wanted to a create a shell script
-----------------------------------------------------------------------
1) which when called will start a timer and wait for 48 hours.
after 48...
2,964
Posted By k_oops9
ERROR -> ./txt1[2]: x: not found
Hi all,

When I try to run this shell script (name txt1)


script -> txt1
------------------------
#!/usr/bin/ksh
x = "hello"
echo "$x"
------------------------


error while executing...
Showing results 1 to 11 of 11

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