When I am trying to send the above file using mailx from Red Hat Server , I am getting file on my mailbox with incorrect layout i.e second line is starting in continuation with the very first line although the file has three separate lines
Below is the mailx command :
mailx -s "Sending mail" mailid < temp.txt
Below is the output which shows that second line didnt started in a new line :
Hi all,
Anybody knows how to write a script to
open a file and store the weekday(mon-sun) on first line and current datetime on
the second line of the file.
If file doesn't exist, create a new one and store the weekday and current datetime.
If it already exists, open it and get both... (2 Replies)
Dear All,
I am facing an issue related to cronjob and explained below is the case study:
1. I have a java class named "DmCheckRenditionQueue.java" and placed under "/cpc/documentum/product/5.2.5/tomcat/webapps/rendition"
2. When I am using the command
"/usr/openv/java/jre/bin/java -cp... (1 Reply)
Hi,
I am working with java and C/C++.In my java code I am using the native method to work with C/C++.So I am getting some error in C/C++ source code which I am not able to find it because It is throwing the only java null Exception....
Is there any way by which I can see the error in java console... (0 Replies)
Hi Guys,
I am working with Solaris 9 and we are developing the application which will work on different OS.So we develop the GUI using JAVA swings...
we want to display a Splash screen before starting the installation of the application...
1st we develop our application for windows and it is... (1 Reply)
Hi All,
I am establishing the proxy server to communicate the date between devices using serial port but after serial port connection,it should start the Proxy Server and still run till the communication is happening...but server became started but it became halted due to error -
Please... (1 Reply)
Hi all,
Actually I want to flash the image which I have in my system and when I am trying to do it,it is not showing it.simply creates the frame but not displaying the image.I am attaching the code--
Please take a look on it and please provide your valuable suggestions on it so that I... (2 Replies)
Hi All,
I have used the following syntax for sending email.
"mailx -s "process not running" userid@domain.com "
I am getting below error.
" mailx: not found "
Can anoy one please give the reason for this error.
I am using REDHAT server. (2 Replies)
Want few input related to unix environment and terminal settings:
1. Am trying to find a way to keep the unix terminal display intact even after opening and closing a vi/less file. Currently if I open a vim file in the unix terminal and then close the file,it displays the contents of vim file on... (4 Replies)
I am getting the following error on loading the connector DLL in IHS 8.5 on AIX 7.1
bash-4.2# /usr/32bit/IBM/HTTPServer/bin/apachectl start
httpd: Syntax error on line 902 of /usr/32bit/IBM/HTTPServer/conf/httpd.conf:
Cannot load /usr/<company_name>/IHS85/lib/libApache22Connector.a
into... (3 Replies)
Discussion started by: George47
3 Replies
LEARN ABOUT ULTRIX
quota
quota(2) System Calls Manual quota(2)Name
quota - manipulate disk quotas
Syntax
#include <sys/types.h>
#include <sys/param.h>
#include <sys/quota.h>
quota(cmd, uid, arg, addr)
int cmd, uid, arg;
caddr_t addr;
Description
The call manipulates disk quotas for file systems that have had quotas enabled with The cmd parameter indicates a command in the following
list that is applied to the user ID uid. The arg parameter is a command specific argument and addr is the address of an optional, command
specific data structure, which is copied in or out of the system. The interpretation of arg and addr is given with each command in the
list that follows:
Q_SETDLIM
Set disk quota limits and current usage for the user with ID uid. The arg parameter is a major-minor device indicating a particular
file system. The addr parameter is a pointer to a struct dqblk structure, defined in <sys/quota.h>. Only the superuser can issue
this call.
Q_GETDLIM
Get disk quota limits and current use for the user with ID uid. The remaining parameters are identical to the Q_SETDLIM command
parameters.
Q_SETDUSE
Set disk use limits for the user with ID uid. The arg parameter is a major-minor device indicating a particular file system. The
addr is a pointer to a struct dqusage structure, defined in <sys/quota.h>. Only the superuser can issue this call.
Q_SYNC Update the on-disk copy of quota uses. The uid, arg, and addr parameters are ignored.
Q_SETUID
Change the calling process's quota limits to those of the user with ID uid. The arg and addr parameters are ignored. Only the
superuser can issue this call.
Q_SETWARN
Alter the disk usage warning limits for the user with ID uid. The arg is a major-minor device indicating a particular file system.
The addr parameter is a pointer to a struct dqwarn structure, which is defined in <sys/quota.h>. Only the superuse can issue this
call.
Q_DOWARN
Warn the user with user ID uid about excessive disk use. This call causes the system to check its current disk use information and
print a message on the terminal of the caller for each file system on which the user is over quota. If the arg parameter is speci-
fied as NODEV, all file systems that have disk quotas are checked. Otherwise, arg indicates a specific major-minor device to be
checked. Only the superuser can issue this call.
Return Values
A successful call returns 0 and, possibly, more information specific to the command specified in the cmd parameter; when an error occurs,
the value -1 is returned and the global variable errno is set to indicate the reason.
Diagnostics
A quota call fails when one of the following occurs:
[EINVAL] The kernel has not been compiled with the QUOTA option.
[EINVAL] The cmd parameter is invalid.
[ESRCH] No disk quota is found for the indicated user.
[EPERM] Only the superuser can issue the call and the caller is not the superuser.
[ENODEV] The arg parameter is being interpreted as a major-minor device, and it indicates an unmounted file system.
[EFAULT] An invalid addr parameter is supplied; the associated structure could not be copied in or out of the kernel.
[EUSERS] The quota table is full.
See Also
"Disk Quotas in a UNIX Environment", ULTRIX Supplementary Documents, Volume 3:System Manager
quota(2)