[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 - extra credit lab #6

extra credit lab #6

Introduction to UNIX/Linux

extra credit lab #6

Postby janet tuma on Thu May 14, 2009 10:44 am

For the extra credit lab # 6, is below what is looked for from a single line command, or did Rich not want the date shown along with the output of banner? I’m not sure if I’m to ‘add banner output to date command output’ or ‘replace date output with banner output’. I think this is what is wanted given “…run the banner command ON the output of the date command.”

The command I used gave the following output:

Wed May 13 19:50:49 PDT 2009
Usage: banner "up to 10 char string" ...
/home/cis90/tumajan/ edit s $

I’m also curious why the banner ‘command’ only gives that one line partial output versus all the info shown when you cat banner or man it. Wasn't there a past lab or exercise when we saw huge print on the screen congratulating us..... :?:
janet tuma
 
Posts: 333
Joined: Wed Feb 11, 2009 3:07 pm

Re: extra credit lab #6

Postby Rich Simms on Thu May 14, 2009 6:23 pm

[quote="Lab X1"]See if you can figure out a way to run the banner command on the output of the date command.[/quote]

Another way to say this is: "See if you can use the output of the date command as input to the banner command"

Have fun!

- Rich
User avatar
Rich Simms
Site Admin
 
Posts: 640
Joined: Thu May 15, 2008 2:44 pm

Re: extra credit lab #6

Postby Rich Simms on Mon May 18, 2009 4:39 pm

I need to check into the banner command we have on Opus. It does not like getting input from stdin and complains with the "up to 10 char string" error message Janet and George reported.

Here is a work around to use for now:

Instead of [b]command | banner[/b] use [b]banner $(command)[/b]

For example:
[code]/home/cis90/roddyduk/bin $ echo Broken Pipe | banner
Usage: banner "up to 10 char string" ...
/home/cis90/roddyduk/bin $ banner $(echo Broken Pipe)
###### ###### ####### # # ####### # #
# # # # # # # # # ## #
# # # # # # # # # # # #
###### ###### # # ### ##### # # #
# # # # # # # # # # # #
# # # # # # # # # # ##
###### # # ####### # # ####### # #

###### ##### ###### #######
# # # # # #
# # # # # #
###### # ###### #####
# # # #
# # # #
# ##### # #######

/home/cis90/roddyduk/bin $
[/code]
User avatar
Rich Simms
Site Admin
 
Posts: 640
Joined: Thu May 15, 2008 2:44 pm

Re: extra credit lab #6

Postby janet tuma on Wed Jun 03, 2009 8:57 am

HA! That is what I get for not completing my x-credit lab when I started three weeks ago but didn't get back to until yesterday..... I spend a L O N G time tryign to figure out how to work around that banner issue. I did get there....but here it is on the forum! Now if only I had looked back far enough to see if this isssue, that I raised in the first place :oops: , had been addressed. I'm putting it back on top of the list for anybody else who might be working on it.
janet tuma
 
Posts: 333
Joined: Wed Feb 11, 2009 3:07 pm

Re: extra credit lab #6

Postby janet tuma on Wed Jun 03, 2009 8:58 am

Does the teacher get extra credit points for finding student spelling errors? ;)
janet tuma
 
Posts: 333
Joined: Wed Feb 11, 2009 3:07 pm


Return to CIS 90 - Spring 2009

Who is online

Users browsing this forum: No registered users and 0 guests

cron