I want to find the size of particular file exists in a particular directory
and i wnt to zip it.
In the below mentioned code it should check the MQ.log in the
particular directory.Please correct my code so that it will check
for particular MQ.log but i could not able to check whether
the... (9 Replies)
We have data files that are ftp'd every morning to a SUN server. The file names are exactly the same except for that each has the date included in its name. I have to write script to do 2 things:
STEP 1) Verify that the file arrived in morning.
STEP 2) Compare the file size of the current... (3 Replies)
I am trying to write a script to backup my laptop to a NAS drive using rsync. I want the backup to be done, only if it has been more than a week since my last backup.
Each time the rsync command executes, I also create a file backuptime.txt file, with the time at which the script completed the... (1 Reply)
Hi All,
working on AIX 5.3.
Requirement is:
Shell script in ksh to check if any file exists in 4 folders as below:
1. /FILE/INB/INT1
2. /FILE/INB/INT2
3. /FILE/INB/INT3
4. /FILE/INB/INT4
Thanks a lot for your time!
a1_win. (3 Replies)
Hi,
I am trying to check the existence of a file, from a list of possible filenames:
status-A
status-B
status-C
before retrieving the last modified datetime using ls, I want to check it exists or ls will throw an error.
So I have tried this:
if ; then
ls status-*
fi
But the if... (3 Replies)
guys,
I am trying to write a script that does the following:
it looks for a file in a specific directory and if the file is not there (NOT), it emails me. I have tried the following but its not working. It simply hangs up. Please help.
if
then
mail -s 'blah blah blah' my email... (4 Replies)
Hi Forum.
I have a script that accepts 3 input parameters (source directory, list file text, sleep time) and checks for the presence of files. If not there, script goes to sleep for certain amount of time provided by 3rd input.
list file text contains 1 entry but may contain more (file... (13 Replies)
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 ; then
echo "Good"
else
echo "Failure"
fi
#--------------------------
its always going to else part and printing... (8 Replies)
Dear members, The following expect script connects to remote node and check for the file "authorized_keys" in directory /root/.ssh in remote node. However the result is always found even if the file exist or doesn't exist.
expect {
"$fname" {
send_user "found\n"
}
Any idea what is... (4 Replies)
Hi All,
I am a beginner in this and trying to write a shell script in linux which will :
1. Ask for a file name and check if its exists.
2. If file exists only then it will ask for the new target folder, after entering target folder name it will check if it exists.
3. If target folder... (3 Replies)
Discussion started by: ashish_neekhra
3 Replies
LEARN ABOUT HPUX
create_link
create link(1m) create link(1m)NAME
create link - Creates a soft link and optionally specifies an expiration time and an extension time
SYNOPSIS
cdscp create link link-name CDS_LinkTarget = target-name [CDS_LinkTimeout = (expiration-time extension-time)]
ARGUMENTS
The full name of the soft link. The full name of the entry to which the soft link points. A date and time after which CDS checks for
existence of the soft link's target and either extends or deletes the soft link. The value is specified as yyyy-mm-dd-hh:mm:ss (year-
month-day-hour:minute:second). You can abbreviate this value. A period of time by which to extend the soft link's expiration time (if the
server has validated that the target still exists). The value is specified as ddd-hh:mm:ss (days-hour:minute:second). You can abbreviate
ths value.
DESCRIPTION
The create link command creates a soft link. If you specify the CDS_LinkTimeout attribute, you must specify an expiration time and an
extension time. If you omit the CDS_LinkTimeout attribute, the soft link is permanent and must be explicitly deleted.
Privilege Required
You must have insert permission to the directory in which you intend to create the soft link.
NOTE
This command is replaced at Revision 1.1 by the dcecp command and may not be provided in future releases of DCE.
EXAMPLE
The following command creates a permanent soft link named /.:/sales/tokyo/price-server that points to an object entry named
/.:/sales/east/price-server. The expiration value indicates that CDS will check that the destination name /.:/sales/east/price-server
still exists on June 25,1995, at 12:00 p.m. If the destination name still exists, the soft link remains in effect another 90 days. There-
after, CDS will check that the destination name exists every 90 days. cdscp> create link /.:/sales/tokyo/price-server CDS_LinkTarget > =
/.:/sales/east/price-server CDS_LinkTimeout =(1995-06-25-12:00:00 > = 90-00:00:00)
RELATED INFORMATION
Commands: delete link(1m), list link(1m), set link(1m), show link(1m)
create link(1m)