[phpBB Debug] PHP Notice: in file /includes/db/dbal.php on line 110: Undefined array key "cached"
[phpBB Debug] PHP Notice: in file /includes/db/dbal.php on line 111: Undefined array key "normal"
[phpBB Debug] PHP Notice: in file /includes/db/dbal.php on line 112: Undefined array key "total"
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3391: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3393: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3394: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3395: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
Cabrillo College Linux Classes • View topic - Lab 7

Lab 7

UNIX/Linux System Administration

Lab 7

Postby Tim Childers on Wed Nov 05, 2008 11:40 am

I ran the following command but not sure what output or result that I am suppost to get? What should I be looking for?

> bigfile; while du; do man quota >> bigfile; done
Tim Childers
 
Posts: 57
Joined: Mon Oct 06, 2008 6:33 pm

Re: Lab 7

Postby patrick weaver on Thu Nov 06, 2008 1:08 pm

That ">bigile" command is a shellcript. I copied it into a file underneath the first line "#!/bin/bash" as follows

#/bin/bash
> bigfile;
while du;
do man quota >> bigfile;
done
you have to give yourself permission to "x"ecute the file. Then when you run it (the good lord willing and the creek don't rise) it prints the man pages for quota to bigfile over and over until "du" (whatever that is)is no longer true; best -p
patrick weaver
 
Posts: 28
Joined: Tue Sep 02, 2008 7:13 pm


Return to CIS 191B - Fall 2008

Who is online

Users browsing this forum: No registered users and 0 guests

cron