HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- at command
Operating System - HP-UX
1842514
Members
2723
Online
110189
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
02-14-2003 09:52 AM
02-14-2003 09:52 AM
at command
Is there a way to disable at command mailing feature for non root user?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2003 09:58 AM
02-14-2003 09:58 AM
Re: at command
One way would be to disable non-root access to 'at', but give them access to a script named 'at', which calls the real 'at', with whatever options you allow/provide.
Without the source for 'at', and unsupported fiddling at the program level, I don't know of any way to restrict access to some functions of a command. It is easy to restrict or allow access to commands, but, below that level of control, the method I described above may be your only bet.
Maybe somebody else will have a better idea...?
Regards, --bmr
Without the source for 'at', and unsupported fiddling at the program level, I don't know of any way to restrict access to some functions of a command. It is easy to restrict or allow access to commands, but, below that level of control, the method I described above may be your only bet.
Maybe somebody else will have a better idea...?
Regards, --bmr
We must indeed all hang together, or, most assuredly, we shall all hang separately. (Benjamin Franklin)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2003 10:02 AM
02-14-2003 10:02 AM
Re: at command
As with any other cron issued job, anything sent to standard output or standard error will be sent as a mail to the relevant user.
The way to stop it is to ensure that all output is sent to either an alternative log file or /dev/null.
If it's a simple command you can do something like:-
at ...
command > yourfile 2>&1
ctrl D
yourfile could be /dev/null.
Alternatively, you can use exec to redirect standard output and standard error:-
at ...
exec 1>yourfile 2>&1
commands
...
ctrl D
Regards,
John
The way to stop it is to ensure that all output is sent to either an alternative log file or /dev/null.
If it's a simple command you can do something like:-
at ...
command > yourfile 2>&1
ctrl D
yourfile could be /dev/null.
Alternatively, you can use exec to redirect standard output and standard error:-
at ...
exec 1>yourfile 2>&1
commands
...
ctrl D
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2003 11:39 AM
02-14-2003 11:39 AM
Re: at command
NO, not in the normal sense anyway.
Why? at and cron are just job wrappers. While they email the output of the job, the output is not from cron, but the commands/script a user schedules with at/cron.
In crontab, we can bypass mail features by re-directing output. The same with at.
Unless you want to replace at with a wrapper (which could be a nightmare depending on what your users are scheduling), just have them append their jobs output to /dev/null.
Regards,
Shannon
Why? at and cron are just job wrappers. While they email the output of the job, the output is not from cron, but the commands/script a user schedules with at/cron.
In crontab, we can bypass mail features by re-directing output. The same with at.
Unless you want to replace at with a wrapper (which could be a nightmare depending on what your users are scheduling), just have them append their jobs output to /dev/null.
Regards,
Shannon
Microsoft. When do you want a virus today?
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP