06-12-2007
same file will be in different location,i have to cp latest file to other folder(overwrite) every month. I resolved that issue,see my reply. Thanks.
10 More Discussions You Might Find Interesting
1. HP-UX
I made tar file having file names more character( up to 50).
When i extract file in Linux it extracts fine.. but in HPUX all file name which are more than 24 are trimed to 24 characters.
i m using "tar -xvf xx.tar"
i read some O and N option for New posix and Old but didnt got. :confused:
... (2 Replies)
Discussion started by: ajayyadavmca
2 Replies
2. UNIX for Dummies Questions & Answers
Hello Guys...
I am a newbie to Unix. I am having a requirement, Like in a file, I want to count the number of characters,
I used wc -c and wc -m, But both are giving the byte count instead of character count.
Please help me guys... Its very very urgent.
Really appreciate ur help..
... (5 Replies)
Discussion started by: mraghunandanan
5 Replies
3. Shell Programming and Scripting
dd if=/dev/zero of=/var/images/abc.img bs=1M count=0 seek=2097152
dd: truncating at 2199023255552 bytes in output file `/var/images/abc.img': File too large
The dd commad fails here saying its truncating if I try same command with less value for seek it works
dd if=/dev/zero... (3 Replies)
Discussion started by: amol28kulkarni
3 Replies
4. Shell Programming and Scripting
I am trying to show out the character count of a file if greater than 500 characters. When I do the -m its show the size of the file and not the characters in the file. Where am I getting confused? Or is -c and -m the same thing? Code is below
if ;
then
echo "Char... (3 Replies)
Discussion started by: tvb2727
3 Replies
5. Shell Programming and Scripting
Hi,
I am using tr command like below:
cat file_name | tr -c "" "" > output_file
When i run my script from command mode, it is working fine. I scheduled my job in autosys. When the job runs at specified I am getting below Error:
tr: when translating with complemented character... (5 Replies)
Discussion started by: Karteek
5 Replies
6. Shell Programming and Scripting
I have used the mail command from the command line for sending mail from one machine to anther machine.
Example:
mail -s "Test" thillaselvan@xxx.co.in
Testing
But the mail is not getting received.
I have checked the logs in the following file.
tail -f /var/log/exim4/mainlog
It is... (0 Replies)
Discussion started by: thillai_selvan
0 Replies
7. UNIX for Dummies Questions & Answers
Hi,
Getting the below error.
rm *.txt
bash: /usr/bin/rm: Arg list too long
I understand the error is because there are lakhs of .txt file.
Any fix ? (16 Replies)
Discussion started by: mohtashims
16 Replies
8. Shell Programming and Scripting
Hi All,
I am using the below script which has awk command, but it is not returing the expected result. can some pls help me to correct the command.
The below script sample.ksh should give the result if the value of last 4 digits in the variable NM matches with the variable value DAT. The... (7 Replies)
Discussion started by: G.K.K
7 Replies
9. Shell Programming and Scripting
I am on Linux LXLE.
I been trying to change directories and opens folders and files.
1. I cd /home file
2. then user (/home/teak/)
Then I try to open the Document file, wouldn't it be /home/teak/doument? . It responds not a directory. So how would I open the document file, or not... (3 Replies)
Discussion started by: teak
3 Replies
10. UNIX for Beginners Questions & Answers
I am new to unix.I have a requirement to get few fields from the log file as below.
Log
app9/cc-gr_base.log.2017-07-19.gz: hostname 1500523166993 NA:NA:NA http-nio-8080-exec-56 INFO Points balance from MIS for user with userId: 19651069, first name: DEREK RICHARD and last name: BOUDREAU is... (3 Replies)
Discussion started by: nextStep
3 Replies
LEARN ABOUT OPENSOLARIS
updatehome
updatehome(1M) System Administration Commands updatehome(1M)
NAME
updatehome - update the home directory copy and link files for the current label
SYNOPSIS
/usr/bin/updatehome [-cirs]
DESCRIPTION
updatehome reads the user's minimum-label copy and link-control files (.copy_files and .link_files). These files contain a list of files to
be copied and symbolically linked from the user's minimum-label home directory to the user's home directory at the current label.
The Solaris Trusted Extensions dtsession program performs an updatehome whenever a newly labeled workspace is created so that the user's
favorite files are available for use. For example, the user probably wants a symbolic link to such files as .profile, .login, .cshrc,
.exrc, .mailrc, and ~/bin. The updatehome command provides a convenient mechanism for accomplishing this symlink. The user can add files to
those to be copied (.copy_files) and to those to be symbolically linked (.link_files).
OPTIONS
-c Replace existing home-directory copies at the current label. The default is to skip over existing copies.
-i Ignore errors encountered. The default aborts on error.
-r Replace existing home-directory copies or symbolic links at the current label. This option implies options -c and -s. The default is
to skip over existing copies or symbolic links.
-s Replace existing home-directory symbolic links at the current label. The default is to skip over existing symbolic links.
EXIT STATUS
Upon success, updatehome returns 0. Upon failure, updatehome returns 1 and writes diagnostic messages to standard error.
EXAMPLES
Example 1 A Sample .copy_files File
The files that are listed in .copy_files can be modified at every user's label.
.cshrc
.mailrc
.mozilla/bookmarks.html
Example 2 A Sample .link_files File
The files that are listed in .link_files can be modified at the lowest label. The changes propagate to the other labels that are available
to the user.
~/bin
.mozilla/preferences
.xrc
.rhosts
Example 3 Updating the Linked and Copied Files
The .copy_files and .link_files were updated by the user at the minimum label. At a higher label, the user refreshes the copies and the
links. No privileges are required to run the command.
% updatehome -r
FILES
$HOME/.copy_files List of files to be copied
$HOME/.link_files List of files to be symbolically linked
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWtsu |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
SEE ALSO
attributes(5)
.copy_files and .link_files Files in Solaris Trusted Extensions Administrator's Procedures
NOTES
The functionality described on this manual page is available only if the system is configured with Trusted Extensions.
SunOS 5.11 20 Jul 2007 updatehome(1M)