AIX "ls" exhibits a very non standard behavior. This won't happen if "ls" isn't run as root though.
Here is an alternative more robust than the "sort | tee" hack:
Is it possible to sh a command and receive the standard output on the scrren and use file redirection ie ls -lt > test. Also On SCO-UNIX there was a tellme command which displayed a message when a script had finished running is there something similar for HP UNIX as it is not working. (4 Replies)
Oracle procedure create files on UNIX folder on a regular basis. I need to FTP files onto windows server and place the files, based on their name, in the corresponding folders. File name is as follows: ccyymmddfoldernamefile.txt; Folder Name length could be of any size; however, the prefix and... (3 Replies)
my querry is
suppose i have duplicate std i/p with FD-3 --exec 0<&3
now redirected std i/p to a file ----exec 0<file1
suppose i am reading the file line by line --while read LINE
cutting some fields and comparing it with a variable and if a match is found
... (0 Replies)
Hi,
I have a requirement to move a file from one folder(a) to another folder(b) only when folder (b) have a write permission. Folder permission is 755
If the permission is otherthan 755 we need to come out of the loop
I will appreciate your help
Thanks
Soll (1 Reply)
Hi,
I have a fbackup step as below
/bin/nice /etc/fbackup -f /dev/rmt/0m -i / -I /opt/monitrol/tmp/Index.full
Now the errors that i will get in case of the fbackup step, I want to redirect them to a file. Please help me how to redirect to a file.
Thanks,
Avik. (5 Replies)
Hi all,
I am working with the Grinder tool (unrelated to my question) to redirect the output of a program to a file as follows:
java -cp $CLASSPATH net.grinder.TCPProxy > grinder.txt
This is a proxy server which pipes output to a file. When I do something on my proxy, more and more goes to... (1 Reply)
Suppose I have a file named a
When I write
cat a>a
The following error message is displayed
cat: a: input file is output file
and my file a is truncated to zero size.
Also the exit status of the last command is 1
Can someone tell me what actually happens when I do so? (1 Reply)
This is the file structure:
DESKTOP/Root of Photo Folders/Folder1qweqwasdfsd/*jpg
DESKTOP/Root of Photo Folders/Folder2asdasdasd/*jpg
DESKTOP/Root of Photo Folders/Folder3asdadfhgasdf/*jpg
DESKTOP/Root of Photo Folders/Folder4qwetwdfsdfg/*jpg
DESKTOP/Root of Photo... (4 Replies)
Hi all,
let me explain my requirments
i am having 5 folder with different name for eg) abc , cdf , efd, rtg, ead
each 5 folders contain 15 files
i want to move 10 files to some other folder, remain 5 files should be there in the same folder.
give me some suggestion on this. (6 Replies)
I am struck up with a problem and that is with output redirection.
I used all the ways for the redirection of the output of c binary to a file, still it is failing.
Here are the different ways which I have used:
./a.out | tee -a /root/tmp.txt 2>&1
./a.out | tee -a /root/tmp.txt 1>&1
./a.out |... (2 Replies)
Discussion started by: Maya29988
2 Replies
LEARN ABOUT ULTRIX
packf
packf(1mh)packf(1mh)Name
packf - compress a folder into a single file
Syntax
packf [ +folder ] [ msgs ] [ -file name ] [ -help ]
Description
Each message in a folder is normally stored as a separate file. The command takes all messages from the current folder and copies them to
a single specified file. Each message in the file is separated by four <CTRL/A>s and a newline.
You can specify a folder other than the current folder by using the +folder argument. If you do not want all the messages in a folder to
be packed into one file, you can specify a number of messages or a range of messages with message numbers.
The first message packed will become the current message. If you specify a +folder argument, that folder will become the current folder.
When messages have been packed into a file using you can separate them into individual messages using the command. See
Options-file name
Specifies the file in which you want the message(s) to be stored. If you specify an existing file then the specified messages
will be appended to the end of that file. Otherwise, a new file will be created and the messages placed in it. If you do not
specify a filename, attempts to place the messages in a file called in the current working directory. If this file does not
exist, asks whether you want to create it.
-help Prints a list of the valid options to this command.
The default settings for this command are:
+folder defaults to the current folder
msgs defaults to all
-file ./msgbox
Examples
The first example shows all the messages in the folder being packed into a file called
% packf +lrp -file planning
The next example shows how prompts you if you do not specify a -file option. A file called is created by in your home directory, and mes-
sages 3 to 5 are packed into it:
% packf +lrp 3-5
Create file "/machine/disk/username/msgbox"? y
Profile Components
Path: To determine the user's Mail directory
Msg-Protect: To set protections when creating a new file
Files
$HOME/.mh_profile The user profile.
See Alsoburst(1mh)packf(1mh)