Search Results

Search: Posts Made By: ch33ry
4,771
Posted By ch33ry
i am new to cron jobs.... Can you plz let me...
i am new to cron jobs....
Can you plz let me know how do check the syslogs or corn logs?
4,771
Posted By ch33ry
Schedule a cron job
Hi,

Can anyone help me out with scheduling a cron job for the below:

i wnated to delete file from a folder on every sunday at 05:00 AM

this is code i have used....
2,239
Posted By ch33ry
Can you please let me know how to make "abc"...
Can you please let me know how to make "abc" member of "sftp"
2,239
Posted By ch33ry
i am new to unix..... so not sure i am...
i am new to unix.....
so not sure i am answering correclty.....

I have logged in as the abc and went to the required path and was changing the ownership.
2,239
Posted By ch33ry
chown of a Directory
Hi All,

I need your help in changing the owner of a directory.

I have a created a direcotry TEST with user "abc"....for the group "ftp".

Now i wnated to change the owner of the directory...
7,010
Posted By ch33ry
Thanks a lot...it worked perfectly................
Thanks a lot...it worked perfectly................
7,010
Posted By ch33ry
I've changed the code....but still its not...
I've changed the code....but still its not working....

in the above i am checking for existence of two files with a.log and b.out in the directory logs...

its returing Failure if the files...
7,010
Posted By ch33ry
set -vx path=/a/i/logs if [ -f "$path"...
set -vx
path=/a/i/logs
if [ -f "$path" "a.log" -o "b.log" ]; then
echo "Success"
else
echo "Failure"
fi
Hi....

How abt for the above lines i am searching for existence of a files.

What...
2,832
Posted By ch33ry
what is the difference between -f and -e, when checking for file exists
Hi All,

what is the difference between -f and -e.

Regards,
ch33ry
7,010
Posted By ch33ry
Script to check file exists
Hi,

I am trying to write a script which checks if any file exists with "*.log" or "*.out" in Directory

below is the code
#------------------
path=/abd/xyz/
if [ -f "$path *.log -o *.out"...
2,418
Posted By ch33ry
if file.ext exits in Dir "in" then move it to...
if file.ext exits in Dir "in" then move it to out/file-date.ext.

else simply quit from the while loop....
2,418
Posted By ch33ry
Hi Corona688, Sorry i could convey my...
Hi Corona688,

Sorry i could convey my message correctly......

In my query the "Find" is checking for files with ".log" and ".out" in the LOG_DIR,

I wanted to proceed with next steps only...
2,772
Posted By ch33ry
Thanks Alister, I have changed to code to...
Thanks Alister,

I have changed to code to include the status in a variable. It worked

apps/informatica/node1/scripts/SIT-DEV_inf_env_param.cfg
Var=$?
echo "Status of Previous Command :" $Var...
2,772
Posted By ch33ry
Error Check
Hi,

I am wirting a script to check the informatica services are running.

I am executing a CONFIG FILE before starting the check..
This config file will be having all the ENV Variables..that...
2,418
Posted By ch33ry
Hi, The above solution has worked prefectly as...
Hi,
The above solution has worked prefectly as expected....
Incase if i want to proceed with moving the files from Source to Target , only if the log file exits,if not do not do the archive but...
2,418
Posted By ch33ry
Thanks Corona688....It worked....
Thanks Corona688....It worked....
2,418
Posted By ch33ry
Find file only from a Directory
Hi,

I am using the below query to find files from a Directory:

SOURCE_DIR--Directory

Files in the Directory:

ABC.log
XYZ.out

The SOURCE_DIR has subdirectory....

when i use...
2,244
Posted By ch33ry
My system linux and shell...kron ----------...
My system linux and shell...kron

---------- Post updated at 02:55 PM ---------- Previous update was at 02:53 PM ----------

set -vx
BASE=${FILE##*/}...
2,244
Posted By ch33ry
I am very new to unix...learning things.... ...
I am very new to unix...learning things....

i did'nt get this

---------- Post updated at 02:41 PM ---------- Previous update was at 02:32 PM ----------

Hi,

I was testing the script and...
2,244
Posted By ch33ry
Hi Corona688, You said we can get away...
Hi Corona688,

You said we can get away without using basename. how do i do that.

Regards,
ch33ry
2,244
Posted By ch33ry
Hi, Thanks for you quick reply... I...
Hi,

Thanks for you quick reply...

I am very new to unix...trying to learn things...

i have tried you code....

do you mind explaining me how this is done.

---------- Post updated at...
2,244
Posted By ch33ry
Remove two types of files from a directory
Hi All,
i need to move two types of files from a directory.
I have used the below command to find the files from the directory..

SOURCE_DIR="some directory path"
TARGET_DIR="Target Dir"...
1,669
Posted By ch33ry
i am new to unix...trying to learn things... ...
i am new to unix...trying to learn things...

system is linux and shell ksh by default..
1,669
Posted By ch33ry
Folder permissions to delete
I am using the below command to delete files from directories and subdirectories
find /test/abc/xyx -type f -mtime +7 -exec rm -f {} \;

there are some subfolders in xyx for which i don't have...
1,048
Posted By ch33ry
Hi agama, Thanks a lot for your response.... ...
Hi agama, Thanks a lot for your response....

---------- Post updated at 02:45 PM ---------- Previous update was at 10:02 AM ----------

when i am trying the below command

find...
Showing results 1 to 25 of 39

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