- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Alias file changes
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2004 01:32 AM
тАО12-14-2004 01:32 AM
Usually they have binded their name with root alias. ie.
root:
Few files are right for root mail alias, like they have
root: email ID for my team.
I want to change files with weired entries.
I have collected all files to my local workstation and push them back. Just trying to think best way to modify these entries...
I have backup of these files with me.
and file names are copies as alias.
Please suggest for changes to be carried.
Thanks and regards
Prashant
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2004 01:36 AM
тАО12-14-2004 01:36 AM
Re: Alias file changes
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2004 01:38 AM
тАО12-14-2004 01:38 AM
Re: Alias file changes
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2004 01:39 AM
тАО12-14-2004 01:39 AM
Re: Alias file changes
Once that is done you can push the files with rcp/scp.
for i in $(ls -1|awk -F . '{print $2}')
# This will get the host name list
do
rcp/scp alias.${i} user@${i}:/etc/mail/
rsh/ssh user@${i} "/usr/sbin/newaliases"
done
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2004 01:43 AM
тАО12-14-2004 01:43 AM
Re: Alias file changes
Thanks for replies, I appreciate quick turn up..
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2004 01:55 AM
тАО12-14-2004 01:55 AM
Re: Alias file changes
You will have to do it for each string...
THis page of one liners may help you:
http://www-h.eng.cam.ac.uk/help/tpl/unix/sed.html
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2004 02:05 AM
тАО12-14-2004 02:05 AM
Re: Alias file changes
sed I have got the same page, will probably work on it more.
I can think of putting # at root: line and putting a new line these.
Any other suggestions, using perl.
Even how to acheive what I think using perl..
Pls reply
Thx
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2004 02:16 AM
тАО12-14-2004 02:16 AM
Re: Alias file changes
do
mv ${i} ${i}.bak
sed 's/root/\#root/g' ${i}.bak > $i
echo "root : correct entry" >> $i
done
Anil
- Tags:
- sed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2004 02:24 AM
- Tags:
- Perl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2004 03:12 AM
тАО12-20-2004 03:12 AM
Re: Alias file changes
Thanks and regards
Prashant