Search Results

Search: Posts Made By: tom_cmu
Forum: Web Development 05-28-2009
2,541
Posted By tom_cmu
Do you mean this? Apache Tutorial: .htaccess...
Do you mean this?
Apache Tutorial: .htaccess files (http://httpd.apache.org/docs/1.3/howto/htaccess.html)
10,049
Posted By tom_cmu
Hi. raksha.s To find the process owner. In...
Hi. raksha.s

To find the process owner. In solaris, it generally use 'ps -ef ' command to list all current process.
In other Unix system use "ps -aux" instead.
However, If your system has long...
10,049
Posted By tom_cmu
Have you check the /path owner and permision? ...
Have you check the /path owner and permision? Is it allow the apache httpd's owner to access and execute the file?
Some how, the file is allow for all user but the folder is not allow the other...
3,872
Posted By tom_cmu
I guess the text that come out from jar -tvf ...
I guess the text that come out from jar -tvf looks like these.
<abc.class> , <xyz$abc.class>
if so why don't you try this:

jar -tvf old_jarfiles/$jarname | grep "^<$fntoreplace"

If I do a...
3,872
Posted By tom_cmu
You first question ask about to find the target...
You first question ask about to find the target file in the n directotries.
That can due with "find" and "sed" on unix command.

But the second statement show that you use grep from the list...
5,647
Posted By tom_cmu
After you edit the cron table: crontab -e you...
After you edit the cron table: crontab -e
you as a superuser will then have to restart the cron by.
1. go to /etc/cron.d (solaris 5.+)
2. find a file FIFO and remove it.
3. type
ps -ef | grep...
Forum: AIX 05-22-2009
3,568
Posted By tom_cmu
Why don't you try "at <timespec> command" to...
Why don't you try "at <timespec> command" to run process in a specific time.

refer to
http://www.rahul.net/raithel/MyBackPages/crontab.html
7,906
Posted By tom_cmu
Hi! Why don't you put a statement. ...
Hi!
Why don't you put a statement.
MAILTO="user@domain.com"
in the Get_News.sh script file.
since this parameter can feed to the mail -s command when this script is executed by cron process.
...
13,084
Posted By tom_cmu
Hi! I change the if cause only that it should use...
Hi! I change the if cause only that it should use the test command.
I remove some of your comment lines to make it easy to sweep my eyes on it.
I attach the test file to let you take a look on it....
13,084
Posted By tom_cmu
You are correct about "if [ "$work" = "STARTING"...
You are correct about "if [ "$work" = "STARTING" ]".

1. I put
work=""
after your sql_Dir=... statement

2. I modify the statement
echo "PAST LANDING DIR. CHECK with work = $work in the...
13,084
Posted By tom_cmu
please try this: tarCheck=`ls...
please try this:
tarCheck=`ls $landingDir/*tar*`
instead of belowing.

tarCheck=`ls $landingDir | grep -i *tar*`
13,084
Posted By tom_cmu
this script has been tested. if you can use it on...
this script has been tested. if you can use it on your site. Then you can apply it to your script.
13,084
Posted By tom_cmu
Oop! I give you a wrong syntax. please use test...
Oop! I give you a wrong syntax.
please use test within if cause fore example:
#!/bin/sh
cfile="./download"
if test -d $cfile
then
echo "$cfile is exist "
ls -l $cfile
else
echo "can...
13,084
Posted By tom_cmu
Your if statement may not correct. Since the -f...
Your if statement may not correct.
Since the -f <file>, -z <file> should use in test statement instead of if cause.
13,084
Posted By tom_cmu
Why don't you use: test [ -d $toBackUpDir ] ...
Why don't you use:

test [ -d $toBackUpDir ]

instead of

if [ -d $toBackUpDir ]

the option -d <file> should use with test command,isn't it?
13,084
Posted By tom_cmu
The another try. Please try to use if [ $work...
The another try.
Please try to use
if [ $work -eq "STARTING" ]
instead of
if [ $work = "STARTING" ]
13,084
Posted By tom_cmu
Your problem is so interesting. I copy your...
Your problem is so interesting.
I copy your script and try to execute on my server. Unfortunatly, I am using Solaris 9.5.
So, except the tar option that may different between Solaris 9 and 10. ( I...
13,084
Posted By tom_cmu
Have you check this line? > #OLD WAY:...
Have you check this line?
>
#OLD WAY: #fileName=`date | sed -n s/ /_/g p | sed -n s/^/Backup_/p | sed -n s/$/\.tgz/p | sed -n s/^/$landingDir/p` #NAME OF BACKUP FILE
>
Though you add comment...
23,777
Posted By tom_cmu
to find the dynamic latest date of month.
Hello.
Here is the dynamic latest date of month that you can use for check for the certent event that you wish to do with cron on the last date of each month.

#!/bin/sh
# find number of month...
Showing results 1 to 19 of 19

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