Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Repquota doesn't work as Cronjob?!? Post 19590 by b416 on Saturday 13th of April 2002 08:34:32 PM
Old 04-13-2002
Network Repquota doesn't work as Cronjob?!?

Hello:

I'm trying to run repquota -ag > /home/usersdir/repquota.txt as a daily cronjob at midnight, but the file always ends up blank.

I even tried writing a quick Perl script to e-mail me what running that command outputs, and it's nothing.

Can root run repquota as a cronjob? Do I have to do anything special?

Thanks for any help.
Peter.
 

10 More Discussions You Might Find Interesting

1. Programming

why doesn't this work?????

i keep getting the following error with the code segment below when i try to compile the program. parse error before '(' parse error before ')' stray '\' in program this is the code segment and the error is on the second line of the segment #define DEBUG(fmt) if(traceflag) {... (1 Reply)
Discussion started by: token
1 Replies

2. Windows & DOS: Issues & Discussions

[help]Win98 doesn't respond

My system is combined by Win98 and sco opensever.......but when Win98 is starting .my computer doesn't respond........what can i do? (1 Reply)
Discussion started by: dingxf
1 Replies

3. Shell Programming and Scripting

grep doesn't work within shell script?

I am trying to run the following code from a script file but it complains that syntax of (both instances of) grep is wrong. When I copy and paste it to the terminal, it is OK. Any idea what the problem might be? set i = `grep -c #define flags.h` while ($i>20) @ i-- my func (`cat... (4 Replies)
Discussion started by: barisgultekin
4 Replies

4. UNIX for Dummies Questions & Answers

What hapens if a group member doesn't exist?

As part of a NIS implementation, (I think) I want to create a group (in /etc/group) that has users that do not exist on the target machine. What effect will this have? Will it cause any problems? Thanks, Gary Cooper (1 Reply)
Discussion started by: Gary Cooper
1 Replies

5. UNIX for Dummies Questions & Answers

unmount doesn't work

Hi guys, I've been trying to unmount a floppy like this: unmount /mnt/floppy But then I get a "command not found" message."mount" works,but why not unmount? I've also tried "eject" but all it does is open up my cdrom drive and I tried "eject /mnt/floppy" but I get an error that says Invalid... (2 Replies)
Discussion started by: DISTURBED
2 Replies

6. UNIX for Dummies Questions & Answers

my case statement doesn't work..

CO UNixware 7.1.1 Hi friends, I have chopped my case statementt out of my .profile and put it in another script called setsid. The case statement works when run from my .profile but not from my setsid file. All that the script does is set an environmental variable based on user input.... (7 Replies)
Discussion started by: sureshy
7 Replies

7. Windows & DOS: Issues & Discussions

My ATX System Doesn't power off

Hello! Will someone help me find a solution to my computer systems which as windows 98 and Windows 2000 professional running on it. After shutting down the system the system will prompt system shutdown but it will not power off the system( the system as an ATX power system) . Therefore it is as... (1 Reply)
Discussion started by: kayode
1 Replies

8. UNIX for Dummies Questions & Answers

Script doesn't work, but commands inside work

Howdie everyone... I have a shell script RemoveFiles.sh Inside this file, it only has two commands as below: rm -f ../../reportToday/temp/* rm -f ../../report/* My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
Discussion started by: cheongww
2 Replies

9. Shell Programming and Scripting

Doesn't run as a cronjob...

Hi! I have a svn backup script that works perfectly if I execute it from the command line but if I set it as a cronjob to run at night, only part of the code works. So, basically the scripts starts by deleting the folder yesterday and then moves the folder today to the folder yesterday. When... (4 Replies)
Discussion started by: ruben.rodrigues
4 Replies

10. Shell Programming and Scripting

Rerun a cronjob if it doesn't work at first.

I want to add a line to the script that searches for a file. If the file does not exist, I need to kill the cronjob and run it again in one hour. I am running the program and 2 am and 2pm. I would want the job to run again at 3am and 3pm respectively. How could I do this and still keep the cronjob... (1 Reply)
Discussion started by: libertyforall
1 Replies
repquota(8)						      System Manager's Manual						       repquota(8)

NAME
repquota - summarizes file system quotas SYNOPSIS
/usr/sbin/repquota [-guv] file_spec ... /usr/sbin/repquota -a [-guv] PARAMETERS
Specifies one or more file systems. Specify any file system by entering its full path name or its mount point. The full path name is the name entered in the file_spec field of the file system's entry in the /etc/fstab file. The mount point is the name entered in the mnt_point field of the file system's entry in the /etc/fstab file. For UFS file systems, you can alternatively enter the name of a block device special file. For example: /dev/disk/dsk3c. For AdvFS filesets, you can alternatively enter the name of a file domain, a pound sign (#), and the name of the fileset. For exam- ple: root_domain#root. FLAGS
Prints quotas for all the file systems listed in /etc/fstab. Prints group quotas only. Prints user quotas only. Prints a header line before the information for each file system. DESCRIPTION
The repquota command prints a summary of the disk usage and quotas for the specified file systems. The command provides a snapshot of the quota statistics, which may be inaccurate if there is current activity in the file system. To ensure that the satistics are accurate, run the command when there is no file system activity. To be included in the summary, each file system must have the userquota and groupquota entries in the /etc/fstab file . The following is an example of an entry in the etc/fstab file for the usr fileset: advfs_dmn#usr /usr advfs rw,userquota,groupquota By default, both user and group quota are displayed (if they exist). For each user or group, the current number of files and amount of space (in kilobytes) is printed, as well as quota limits established with the edquota command. repquota must be run by a user with superuser authority. NOTES
Disk quotas are displayed as 1 kilobyte blocks. The term file system represents either a UFS file system or and AdvFS fileset. RESTRICTIONS
You must be the root user to use the repquota command. FILES
Specifies the command path Contains user quotas for file systems Contains group quotas for file systems Contains fileset names and loca- tions RELATED INFORMATION
Commands: edquota(8), fsck(8), quota(1), quotacheck(8), quotaon(8). Functions: quotactl(2). Files: fstab(4). delim off repquota(8)
All times are GMT -4. The time now is 07:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy