06-23-2011
Thanks for the reply, explanation and help.
I'll give it a go most likely on Monday, the big boss has my hands full at the moment.
Cheers,
Michael
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am in a fix.......
I have to write a backup script to backup say Folder A.
Folder A contains n folders 1,2 ,3 .....n.
my script should copy A without folder 2 & 3.
Is there anyway I can do it without writing individual copy commands????
Please help.... (1 Reply)
Discussion started by: chimpu
1 Replies
2. UNIX for Dummies Questions & Answers
I am in a fix.......
I have to write a backup script to backup say Folder A.
Folder A contains n folders 1,2 ,3 .....n.
my script should copy A without folder 2 & 3.
Is there anyway I can do it without writing individual copy commands????
Please help.... (5 Replies)
Discussion started by: chimpu
5 Replies
3. UNIX for Dummies Questions & Answers
Hi all,
Is it possible to find a file on a server without knowing the file path? And when the file is found is it possible to find out the file path?
I would like to find a file by typing: find server/ -name "filename"
Instead of: find server/folder1/folder2/folder3/ -name "filename"
Can... (5 Replies)
Discussion started by: Snakehead
5 Replies
4. Shell Programming and Scripting
I want to create a script which will delete all folders which are over 5 hours old in HP-UX 11.11.
I tried to use the "find" command but it didn't have an option for searching files/folder by hours.
Could some one tell me how to achieve this in HP-UX with only using the standard OS commands and... (4 Replies)
Discussion started by: stevefox
4 Replies
5. UNIX for Dummies Questions & Answers
Hello,
How can I move just the folders that contains files modified n days ago?
Source tree:
|-- SourceFolder
| |-- Subfolder1
| | |-- file1.dat
| | `-- file2.dat
| |-- Subfolder2
| | |-- filea.dat
| | `-- fileb.dat
Destination tree:
|-- ... (3 Replies)
Discussion started by: xavix
3 Replies
6. Shell Programming and Scripting
I am trying to make a unix shell script that will make 99 folders 99 deep (counting the first level folders). So far i have made it make the first 99 folders and 99 more in all of the folders. The only problem is the only way i have found is copying and pasting part of the script over and over and... (18 Replies)
Discussion started by: YukonAppleGeek
18 Replies
7. Shell Programming and Scripting
I have a folder like this
ls input1
dir1 dir2 dir3 file1 file2 file3
dir1, dir2 and dir3 are sub-folders inside the folder input1
ls input2
dir1 dir2 dir3 file1 file2 file3
My dir1 in input1 folder has files f1, f2, f3 and f4.
My dir1 in input2 folder has file f4 and f5.
... (3 Replies)
Discussion started by: jacobs.smith
3 Replies
8. UNIX for Dummies Questions & Answers
Hi
Can i archive folder and folders in with the tar command
My files are located in subfolders
Eg: Folder1/Folder1_1/*.pdf
Folder1/Folder1_2/*.pdf
Folder1/Folder1_3/*.pdf
so i would like to tar all the files in Folder1_1 and Folder1_2 only not Folder1_3 that should be done next... (2 Replies)
Discussion started by: cnrj
2 Replies
9. Shell Programming and Scripting
I am trying to cat 3 files. They all have the same name MFExtract.txt. But, they are in 3 seperate file names. Any idea how I could cat the 3 together. It's throwing me off figuring out a way because the names are the same. I was thinking just doing a 3 cat commands with the full path names and... (2 Replies)
Discussion started by: risarose87
2 Replies
10. Shell Programming and Scripting
Hi,
So i know we use cp -r as a basic to copy folders/files.
I would like this BUT i would like to show the output of the files being copied.
With the amazing knowledge i have i have gone as far as this:
1) find source/* -exec cp -r {} target/ \;
2) for ObjectToBeCopied in `find... (6 Replies)
Discussion started by: Imre
6 Replies
LEARN ABOUT HPUX
smfi_setreply
smfi_setreply(3N) smfi_setreply(3N)
NAME
smfi_setreply() - sets the default SMTP error reply code
SYNOPSIS
PARAMETERS
ctx Specifies the opaque context structure.
rcode Specifies the 3-digit (RFC 821/2821) SMTP reply code as a null-terminated string. rcode cannot be set to NULL value. rcode must
be a valid or reply code.
xcode Specifies the extended (RFC 1893/2034) reply code. An xcode must conform to RFC 1893/2034. If xcode is set to NULL, an extended
code is not used.
message Specifies the text part of the SMTP reply. If message is set to NULL, an empty message is used.
DESCRIPTION
The routine directly sets the SMTP error reply code for a connection. Only and replies are accepted. uses this code on subsequent error
replies from the Milter function.
can be called from any function except the function.
Notes
o Values passed to are not checked for standards compliance.
o The message parameter must contain only printable characters; other characters may lead to undefined behavior. For example, CR or LF
causes the call to fail, a single (percentage) character can cause the text to be ignored. If a (percentage) character must be used in
a string, it must be used as
o For more information on reply codes and their meanings, see RFC 821, 2821, 1893, or 2034.
o If the reply code (rcode) given is a code but is used for the message, the normal reply is not used.
If the reply code (rcode) given is a code but is used for the message, the custom reply is not used.
In neither of these two cases, an error is returned to the Milter and silently ignores the reply code.
o If the Milter returns and sets the reply code to the SMTP server terminates the SMTP session with a error code.
RETURN VALUE
fails and returns if the rcode or xcode argument is invalid or a memory allocation failure occurs; otherwise; returns
AUTHOR
The routine was developed by the Sendmail Inc.
SEE ALSO
smfi_getsymval(3N), smfi_getpriv(3N), smfi_setreply(3N), smfi_setpriv(3N).
on
smfi_setreply(3N)