Search Results

Search: Posts Made By: hezry79
2,579
Posted By hezry79
im using redhat ES. when i go cd into the...
im using redhat ES.

when i go cd into the tmp folder and run the command, the result will be:
find: paths must precede expression
Usage: find [path...] [expression]
Edit/Delete Message

when...
2,579
Posted By hezry79
the new command output as below: find: paths...
the new command output as below:

find: paths must precede expression
Usage: find [path...] [expression]
2,579
Posted By hezry79
[Solved]Delete file more than 2 hour
I have a folder name /tmp. In the folder contain bunch of file with name:

AB**********1
AB**********2
AB**********3
CA**********1
CA**********2
CA**********3

So I want to delete the file...
1,477
Posted By hezry79
thank you for reply...i just tested nfs and it...
thank you for reply...i just tested nfs and it works..but the problem is the mount size from client server to see master a whole drive....

server1
> Full parition for root / and i create a test...
1,477
Posted By hezry79
To sync folder for 3 server and all 3 is master
I have 3 server with same folder name and path in it /home/test. But the data in folder quantity is not same for 3 of them and I want to sync the data inside the each folder to be equal. Its not like...
2,385
Posted By hezry79
after leaving a space and run the script i got...
after leaving a space and run the script i got this:

recoverwebload1: line 20: [[: 1.19: syntax error in expression (error token is ".19")
recoverwebload1: line 20: [[: 0.39: syntax error in...
2,385
Posted By hezry79
i already ammend it but below is the error: ...
i already ammend it but below is the error:

recoverwebload: line 19: syntax error in conditional expression: unexpected token `;'
recoverwebload: line 19: syntax error near `;t'
recoverwebload:...
2,385
Posted By hezry79
Below is my full previous code ...
Below is my full previous code


#!/bin/bash

# Load average ALERT value.

# Maximum load injection trigger
max_loadavg=15.0

# Minimum load injection trigger
min_loadavg=10.0
...
2,385
Posted By hezry79
variable joining
I really need help on this problem.

The story:

My VAR1 and VAR2 works fine and able to get the value. I want to do as "if VAR1 or VAR2 is bigger than max_loadavg then the code will run...then...
Forum: Solaris 03-30-2006
61,348
Posted By hezry79
any idea?..........................
any idea?..........................
Forum: Solaris 03-30-2006
61,348
Posted By hezry79
I try to test as the link but couldnt works...my...
I try to test as the link but couldnt works...my configuration as below

this is my syslog.conf


bash-2.03$ vi /etc/syslog.conf
"/etc/syslog.conf" [Read only] 37 lines, 1035 characters ...
Forum: Solaris 03-29-2006
61,348
Posted By hezry79
no sshd log
[solaris x86.]

My ssh log appear to the screen which i want it to be log to /var/log/sshd.log

how to log the sshd to /var/log?
5,215
Posted By hezry79
thank you...it works...
thank you...it works...
5,215
Posted By hezry79
the file in the backup as below: ...
the file in the backup as below:

file.zip.270306
file.zip.230306
file.zip.200306
.

i follow your suggestion:
from line 21 >> ls -t /tmp/backup/$filename.* | sed 1,2d | while read...
5,215
Posted By hezry79
1- sorry im not good with the saparate thing if...
1- sorry im not good with the saparate thing if else then...still learning...and confuse sometimes.

2- you tell me that my script is ksh script...how to tell that? because in crontab i do this to...
5,215
Posted By hezry79
My Script: #!/bin/bash ...
My Script:
#!/bin/bash
filename="/tmp/file.zip"
toimport="/usr/local/bin/php -q /path/import.php"
LOGTO=/var/log/myscript.log

if [ -s "$filename" ]; then
unzip "$filename" -d /tmp #-d tells...
Forum: Solaris 03-26-2006
14,886
Posted By hezry79
sorry for the question...i found some of people...
sorry for the question...i found some of people using IPF....i try to googleing around net, and i cannot find package for Solaris 8 for intel pc. if anyone using for intel based pc do you mind to...
Forum: Solaris 03-25-2006
14,886
Posted By hezry79
Solaris 8 to many open port
hi all,

My OS is solaris 8 with core system installation only. so far everything works fine. by i do some testing from my xp pc as client to nmap and scan opening port to my solaris. the result as...
5,215
Posted By hezry79
mind me asking. the "while read file"...the word...
mind me asking. the "while read file"...the word 'file' is not same as 'file'.zip right?

As i already declare in my script:

#/bin/ksh

file="file.zip"

#######then insert this...
5,215
Posted By hezry79
yes i want to backup only latest 2 files....the...
yes i want to backup only latest 2 files....the file.zip.$date is not daily backup.

example:

file.zip.240306 <- keep
file.zip.200306 <- keep
file.zip.130306 <- remove
5,215
Posted By hezry79
Script to keep only 2 or 1 file
I have script that running for importing csv to mysql. It started by unzip file.zip. After complete the process from unzip until importing. I will have to rm the import.csv and backup the file.zip (...
Showing results 1 to 21 of 21

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