I wish to seach a Dir for a specific file, once the file is found i will perform additional logic. If the file is not found within two hours, i would like to exit.
Logically, I'm looking for the best way to approach this
Thanks for any assistance in advance.
Note: I'm using a C shell and... (2 Replies)
Here is the command in question for f in $(<uploads); do .
I only want this to execute if uploads is not empty. If uploads is empty I want the script to quit, actually before the for command. If its not apparent uploads is a text file.
Chris (3 Replies)
Hi all,
I need a batch script to Check for existence of file say i check for files with extension xml.done in C:\Myfile.(This folder contains .xml file and its corresponding .done files)
If the .done file exists then it should FTP the corresponding .xml file to UNIX.
Is this possible to do... (6 Replies)
Hi, I want to write a script that runs a command (at -l) and writes the output to a file. If the command (at -l) command returns no value (is empty/null) then write a message to the file in place of the command output.
My problem is around trapping the empty returned command value and replacing... (2 Replies)
Advance Thanks.
(1) I would like to know any unix/Linux command to check EOF char in a file.
(2) Or Any way I can check a file has been reached completely at machine B from machine A. Note that machine A ftp/scp the file to machine B at unknown time. (5 Replies)
Hi All.
Pls help me with the command to check existence of files (I'll mention name of the file as regex) and proceed with my further processing if atleast one of them exists
in detail,
I've a dir /tmp/TURP, which may or may not have files named with "exter*.txt"
I need to check and... (2 Replies)
Input is list of Server's, script is basically to remove old_rootvg, So it should check first command "alt_rootvg_op -X old_rootvg" if it passes move to next server and starts check and if it fails moves to other command "exportvg old_rootvg" for only that particular server. I came up with below,... (6 Replies)
Guys,
i need to check whether java file can be executed in my current unix system or not.
Can anyone please help me to get the correct command to check this.
My Unix system is HP-UX.
Thanks, (1 Reply)
Hello Team,
Would you please help me with a UNIX command that would check if file is a tar file.
if we dont have that , can you help me with UNIX command that would check if file ends with .tar
Thanks in advance. (10 Replies)
Discussion started by: sanjaydubey2006
10 Replies
LEARN ABOUT HPUX
remove_directory
remove directory(1m) remove directory(1m)NAME
remove directory - Removes a value from a set-valued or single-valued attribute (including application-defined attributes) of a directory
SYNOPSIS
cdscp remove directory directory-name attribute-name [= attribute-value]
ARGUMENTS
The full name of the directory. The name of a particular attribute. Specify only one attribute at a time. See the cds_attributes file
for the list of attributes and corresponding data types that your application uses. The value of a particular attribute. The value of an
application-defined attribute is dependent on the type of attribute.
DESCRIPTION
The remove directory command removes a value from a set-valued or single-valued attribute (including application-defined attributes) of a
directory. If you do not specify a value, the command removes the entire attribute. This command can delete attributes created by the add
directory and set directory commands. Usually this task is performed through the client application. See the OSF DCE Administration Guide
for more information about attributes.
Privilege Required
You must have write permission to the directory.
NOTE
This command is replaced at Revision 1.1 by the dcecp command and may not be provided in future releases of DCE.
EXAMPLE
To remove the value 1 from the user-defined, set-valued attribute dirregion of a directory named /.:/sales, follow these steps: Read the
cds_attributes file to check that the attribute dirregion is listed, as shown in the following display:
OID LABEL SYNTAX 1.3.22.1.3.66 dirregion small Enter the following command to remove the value 1 from the
attribute dirregion. cdscp> remove directory /.:/sales dirregion = 1
RELATED INFORMATION
Commands: add directory(1m), list directory(1m), set directory(1m), set directory to skulk(1m), show directory(1m)
Books: OSF DCE Administration Guide
remove directory(1m)