[SOLVED]Questions about a shell program and about shell: files, regexp

Hello, I'm writing this little program in shell:
#!/bin/bash
# Synopsis:
# Read from an inputfile each line, which has the following format:
# lllnn nnnnnnnnnnnnllll STRING lnnnlll n nnnn nnnnnnnnn nnnnnnnnnnnnnnnnnnnn ll ll
# where:
# n is a <positive int>
# l is a <char> (no special chars)
# the last set of ll ll could be:
# - NV
# - PV
# Ex:
# AVO01 000060229651AVON FOOD OF ARKHAM C A S060GER 0 1110 000000022 00031433680006534689 NV PV
# The program should check, for each line of the file, the following:
# I) If the nn of character lllnn (beggining the line) is numeric,
# this is, <int>
# II) If the character ll ll is NV (just one set of ll) then
# copy that line in an outputfile, and add one to a counter.
# III) If the character ll ll is NP (just one set of ll) then
# copy that line in an outputfile, and add one to a counter.
# NOTICE: could be just one ll. Ex: [...] NV [...]
# [...] PV [...]
# or both Ex: [...] NV PV [...]
# Execution (after generating the executable):
# ./ inputfile outputfileNOM outputfilePGP
# Check the number of arguments that could be passed.
if [[ ${#@} != 3 ]]; then
echo "Error...must be: myShellprogram <inputfile> <outputfileNOM> <outputfilePGP>\n"
exit
fi
#Inputfile: is in position 1 on the ARGS
inputfile=$1
#OutputfileNOM: is in position 2 on the ARGS
outputfileNOM=$2
#OutputfilePGP: is in position 3 on the ARGS
outputfilePGP=$3
#Main variables. Change if needed.
# Flags the could appear in the <inputfile>
# ATTENTION!!!: notice that there is a white space
# before the characters, this is important when using
# the regular expression in the conditional:
# if [[ $line =~ $NOM ]]; then [...]
# If the white space is NOT there it would match things like:
# ABCNV ... which is wrong!!
NOM=" NV"
PGP=" PV"
#Counters of ocurrences
countNOM=0;
countPGP=0;
#Check if the files exists and have the write/read permissions
if [[ -r $inputfile && -w $outputfileNOM && -w $outputfilePGP ]]; then
#Read all the lines of the file.
while read -r line
do
code=${line:3:2} #Store the code (the nnn) of the "llnnn" char set of the inputfile
#Check if the code is numeric
if [[ $code =~ ^[0-9]+$ ]] ; then
#Check if the actual line has the NOM flag
if [[ $line =~ $NOM ]]; then
echo "$line" >> "$outputfileNOM"
(( ++countNOM ))
fi
#Check if the actual line has the PGP flag
if [[ $line =~ $PGP ]]; then
echo "$line" >> "$outputfilePGP"
(( ++countPGP ))
fi
else
echo "$code is not numeric"
exit
fi
done < "$inputfile"
echo "COUN NON $countNOM"
echo "COUN PGP $countPGP"
else
echo "FILE: $inputfile does not exist or does not have read permissions"
echo "FILE: $outputfileNOM does not exist or does not have write permissions"
echo "FILE: $outputfilePGP does not exist or does not have write permissions"
fi
I have some questions:
I) When I do:
if [[ -r $inputfile && -w $outputfileNOM && -w $outputfilePGP ]]; then
else
echo "FILE: $inputfile does not exist or does not have read permissions"
echo "FILE: $outputfileNOM does not exist or does not have write permissions"
echo "FILE: $outputfilePGP does not exist or does not have write permissions"
fi
I would like to print the things on the else, accordingly, this is, print the right message. Ex: if "$outputfileNOM" did not have the write permission, just print that error. BUT, I don't want to put a lot of if/else, Ex:
if [[ -r $inputfile ]]; then
if [[-w $outputfileNOM ]] then
else
For the READ permission, and the other for the WRITE
Is there a way to do it, without using a nesting approach, and that maintains the readability. 
II) About the:
if [[ -r $inputfile && -w $outputfileNOM && -w $outputfilePGP ]]
is OK if I use the flag "-x" instead of -r or -w. I don;t have a clear definition of what is the meaning of:
-x FILE
FILE exists and execute (or search) permission is granted
III) Notice the ATTENTION label in my code. I notice that there are some possibilities, for ex: having white spaces before, after or before or after. I'm believing in the consistency of the input files, but if they change, it will explode. What could I do in this case? Is there an elegant way to manage it? (exceptions?)
Thank you very much!
EDIT: corrected what rockin turtle wrote bellow about the format. Thank you.
Last edited by gromlok (2011-10-09 18:39:03)

I) Regarding your if statement, you could do something like this:
estr='FILE: %s does not exist or does not have %s permissions.\n'
[ -r $inputfile ] || ( printf "$estr" "$inputfile" "read" && exit 1 )
[ -w $outputfileNOM ] || ( printf "$estr" "$outputfileNOM" "write" && exit 1 )
[ -w $outputfilePGP ] || ( printf "$estr" "$outputfilePGP" "write" && exit 1 )
II)The -r/-w/-x mean that the file has the read/write/execute bit set. Do a
$ man chmod
for details.
III) You should be able to do
if [[ "$line" =~ .*\<NV\> ]]; then
echo "..."
(( countNOM++ ))
fi
but that didn't work for me when I tried it.  I don't know if this is a bug in bash, or (more likely) something that I am doing wrong.
Regardless, I would write your script like this:
#!/bin/bash
file=$(egrep '^[A-Z]..[0-9]{2}' "$1")
grep '\<NV\>' <<< "$file" > "$2"
grep '\<PV\>' <<< "$file" > "$3"
echo 'Count NON:' $(wc -l < "$2")
echo 'Count PGP:' $(wc -l < "$3")
Note: In reading your script, your comments imply that each line of the input file starts with 'llnnn' but the example line you gave starts with 'lllnn'.  That is, there are 3 letters (AVO) followed by 2 numbers (01). The above script assumes that lines start with 'lllnn'

Similar Messages

  • I have a question about DWG files.  Can I open them on my MacBook Pro with OX 10.9.5 system?What app do I need to view and print them?

    I have a question about DWG files.  What app will allow me to open DWG files to view them on my Macbook Pro?

    Perform this Google search: ".dwg files on mac." The results should provide answers for you.

  • Question about download file in OAS4

    Question about download file in OAS4:
    I use Oracle Application Server 4.0.7 on my Windows NT 4.0 SP6;
    I use PL/Sql Cartridge developer a document system; It's use the
    upload/download in PL/Sql Cartridge;
    I read the document , the Upload/download in Pl/Sql Base on the
    Oracle Application Server's Content Service. the Problem is when I
    download a document, If I upload a Html or MsWord file, It will store in a LongRaw column, when me download ; It's tell me can't
    find a application to open this file; I will select a application
    from list to open the download file;
    As normal, It will open MsWord Automatic when download a "doc" file ; also It will open a new window of Browser to view a Html file;
    I check the download process on client Browser; when download
    file, The content-type always return "application/octet-stream";
    Also the download File will lost the postfix of the file,
    So Browser don't open the File Automatic;
    I think If I set the correct Content-Type , Browser can know how open the file; So I use owa_content.set_content_type procedure
    set the Doc file to "application/msword" , but the WEb Server always
    return "application/octet-stream";
    I didn't know how to do this problem, Plese help me.
    null

    I have a Tecra M2 and rely on your email update to ensure I have the latest drivers on my machine.
    When I received a Toshiba support email on 14 April 2005 giving reference to a QFE from Microsoft I assumed it would be necessary for my Tecra.
    I was very confused when I found that this QFE and subsequent ones posted on the 16 April 2005 relate to Pre SP2 critical updates no9t required if one has already taken earlier advice of updating to Service Pack, at the very least your narrative should make mention of this. I find it very difficult to believe that your updates are two+ years out of date.

  • Question about openning files using SDK 10.

    I have written a Plug-In for SDK 9 that works wonderfully. One of the functions is for the user to be able to page (Next/Previous) between PDF files on our server. This functionality now longer works without crashing Acrobat 10. All I am doing is creating the URL path to the next/previous PDF, creating a CustomFileSys with the path and calling AVDocOpenFromFile.
    Does this no longer work with Acrobat 10 SDK?
    Thanks!

    Should work fine, AFAIK.
    For this level of issue, I would open a formal support request with developer support.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Mon, 10 Oct 2011 08:51:08 -0700
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: Question about openning files using SDK 10.
    Question about openning files using SDK 10.
    created by Greggars<http://forums.adobe.com/people/Greggars> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/3963065#3963065

  • Questions about properties files

    Hello,
    I have two questions about properties files.
    1. Is it possible to import a properties file from another properties file?
    2. Is it possible to have variables in a properties file as described below in code snippet.
    Thanks in advance,
    Julien.
    Code snippet:
    var_one=foo
    var_two=$var_one bar
    The second line would then read "foo bar"

    Hello,
    I have two questions about properties files.
    1. Is it possible to import a properties file from
    another properties file?If you write your own code to parse whatever import statement you decide to put in the properties file, yes. But there's no provision to do so in the core APIs or in the standard usage of these files.
    2. Is it possible to have variables in a properties
    file as described below in code snippet.Same as the answer to your first question. Though this kind of thing is more common, so there might be a library at jakarta or sourceforge or mindprod or something that does this.

  • I have recently updated my CC programs to the latest version and now all of my files wont open by default into their respective programs, only if I open the program and go to file open and open the file from there. How can I fix this?

    I have recently updated my CC programs to the latest version (CC2014) and now all of my files wont open by default into their respective programs, only if I open the program and go to file>open and open the file from there. How can I fix this?
    I have tried 'Open with' and the version of the program now installed on my computer isn't even suggested as an option and when I browse for it, the file wont open with it anyway

    On Windows (don't know about Mac), the latest version will always take over the file association, and become the default for indd files. It's impossible to change it.
    But there is a plugin for ID that makes this possible. Never tried it myself.
    https://www.rorohiko.com/wordpress/downloads/lightning-brain-soxy/

  • I previously had PS CS5 Trial installed but removed it using both Control Panel Programs and deleting all files from the CS5 directory on Program Files.  I then installed a purchased product from Adobe disc using the serial number on the case.  But when I

    I previously had PS CS5 Trial installed but removed it using both Control Panel Programs and deleting all files from the CS5 directory on Program Files.  I then installed a purchased product from Adobe disc using the serial number on the case.  But when I try to launch it, I get a screen headed Photoshop CS5 Extended Trial.  It asks for the serial number and says that my trial has expired.  It rejects the serial number from the Adobe case saying "This Serial Number is not valid for this product".  It thinks that I still have the expired Trial Version installed.  How do I convince it (the program) that the Trial Version is long gone and the currently installed product was installed with a valid and accepted serial number????

    Let me know how it goes. Go into your Adobe account and register your serial number asap.
    https://www.adobe.com/account/my-products-services.html
    That way, should you lose it or you need support, it is on record that it's yours and you can fetch your s/n it from anywhere.
    There are too may sad stories here, where people forgot and the box is buried or lost.
    Gene

  • [SOLVED] Question about CPU temperature

    Hi everybody,
    I just want to ask a question about "standard" CPU temperatures because my laptop (a Dell Vostro 3700) is permanently hot with the fans on even when I am not doing anything special.
    I have CPU freq scaling active with the conservative governor, and I use Gnome Shell 3.2 with an nVidia using the nouveau driver.
    Here are "stable" temperatures while writing this post:
    # sensors
    acpitz-virtual-0
    Adapter: Virtual device
    temp1: +72.5°C (crit = +103.0°C)
    nouveau-pci-0100
    Adapter: PCI adapter
    temp1: +78.0°C (high = +100.0°C, crit = +110.0°C)
    coretemp-isa-0000
    Adapter: ISA adapter
    Core 0: +73.0°C (high = +95.0°C, crit = +105.0°C)
    Core 2: +73.0°C (high = +95.0°C, crit = +105.0°C)
    And this is the output of mpstat
    # mpstat -P ALL
    Linux 3.1.6-1-ARCH (fm) 01/04/2012 _x86_64_ (4 CPU)
    10:16:50 PM CPU %usr %nice %sys %iowait %irq %soft %steal %guest %idle
    10:16:50 PM all 1.59 0.18 0.54 0.02 0.00 0.02 0.00 0.00 97.65
    10:16:50 PM 0 1.88 0.15 0.72 0.02 0.00 0.01 0.00 0.00 97.22
    10:16:50 PM 1 1.64 0.21 0.40 0.02 0.00 0.01 0.00 0.00 97.73
    10:16:50 PM 2 1.47 0.15 0.67 0.02 0.00 0.06 0.00 0.00 97.64
    10:16:50 PM 3 1.36 0.20 0.39 0.02 0.00 0.01 0.00 0.00 98.01
    The fan, of course, is full speed (very annoying)
    I think that these temperatures are quite high, but I don't know what's really causing all this heating because my laptop is basically idle.
    Any suggestion?
    Thanks.
    P.S.: Running Linux fm 3.1.6-1-ARCH #1 SMP PREEMPT Thu Dec 22 09:11:48 CET 2011 x86_64 Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz GenuineIntel GNU/Linux
    Last edited by fm (2012-01-06 09:32:01)

    samuvuo wrote:
    fm wrote:Just to wrap up this topic, I "solved" the issue by adding these parameters to the kernel:
    Just curious: what are the temperatures now? Sensors output after the "fix" would be nice.
    It's in the previous posts:
    Before (idle)
    # sensors
    acpitz-virtual-0
    Adapter: Virtual device
    temp1: +72.5°C (crit = +103.0°C)
    nouveau-pci-0100
    Adapter: PCI adapter
    temp1: +78.0°C (high = +100.0°C, crit = +110.0°C)
    coretemp-isa-0000
    Adapter: ISA adapter
    Core 0: +73.0°C (high = +95.0°C, crit = +105.0°C)
    Core 2: +73.0°C (high = +95.0°C, crit = +105.0°C)
    After (idle)
    acpitz-virtual-0
    Adapter: Virtual device
    temp1: +63.5°C (crit = +103.0°C)
    nouveau-pci-0100
    Adapter: PCI adapter
    temp1: +68.0°C (high = +100.0°C, crit = +110.0°C)
    coretemp-isa-0000
    Adapter: ISA adapter
    Core 0: +62.0°C (high = +95.0°C, crit = +105.0°C)
    Core 2: +64.0°C (high = +95.0°C, crit = +105.0°C)
    After (after playing 8 min youtube video)
    acpitz-virtual-0
    Adapter: Virtual device
    temp1: +74.5°C (crit = +103.0°C)
    nouveau-pci-0100
    Adapter: PCI adapter
    temp1: +78.0°C (high = +100.0°C, crit = +110.0°C)
    coretemp-isa-0000
    Adapter: ISA adapter
    Core 0: +73.0°C (high = +95.0°C, crit = +105.0°C)
    Core 2: +75.0°C (high = +95.0°C, crit = +105.0°C)
    Fan spinning is better (less noisy) after specifying the kernel parameters.
    Thanks
    Last edited by fm (2012-01-06 13:43:05)

  • [SOLVED] Question about GCC error messages.

    I'm currently taking a course in C programming, and I have  a question about the error messages returned by GCC.
    When ever i try to compile a program containing syntax errors, i get cryptic and not very helpfull error messages.
    If i try to compile:
    #include <stdio.h>
    int main(void)
    int i;
    i = 0
    return 0;
    I get following from GCC:
    error.c: In function â:
    error.c:8:2: error: expected â before â
    But shouldn't the message be something like:
    error.c: In function 'main':
    error.c:8:2: error: expected ; before 'return'
    or am I mistaken?
    /AcId
    Last edited by AcId (2010-10-13 17:48:19)

    Woah. That is very strange. I've never seen that before.
    I assume you're using Arch Linux. What text editor did you use to write the code? Which terminal application are you using?
    ...those questions are probably unrelated to the problem, but we might as well get them out of the way.

  • [SOLVED] Question about resolv.conf

    I successfully configured my Arch box with a static IP by following the instructions on the Arch wiki page here but had a couple of questions about configuring /etc/resolv.conf:
    1) What is the proper way to obtain the domain name that should be inserted into resolv.conf?
    2) What exactly is this domain name used for?  I read the man page but still don't really understand it.  Why do I need a domain name if I already have a working set of nameservers to resolve IP addresses?
    EDIT: @ewaller Yes I edited the OP because I realized that my original problem was that I just hadn't added a domain name in my resolv.conf file.  I edited my original post because 1) the instructions are already posted clearly on Arch Wiki so my post really wouldn't be beneficial and 2) so I could ask my real question without making other people waste their time reading through my other nonsense
    Last edited by choogi (2010-09-09 04:06:45)

    yejun wrote:You can just use public dns like 8.8.8.8 or 4.2.2.1. There's no other way to get dnsserver besides dhcp.
    Yes, I know how to get a nameserver, but I'm asking about the domain name that goes in resolv.conf.  The Arch wiki tutorial for setting up static IP uses the following resolv.conf as an example:
    nameserver 61.23.173.5
    nameserver 61.95.849.8
    search example.com
    My question has to do with what the "search example.com" does.  I don't have a domain name associated with my machine, but if I remove that line, then I get "web page unavailable" when I try to load any web site, which suggests that I'm not connecting to any nameservers right?

  • Question about transfering files between windows OS and mac OS when using bootcamp

    I'm thinking about buying the latest macbook pro, however, many of the statistical programs I use are only compatible with windows OS.  I am aware of fusion and parallels, but I was advised to use bootcamp to maximize the performance of both the statistical programs AND the macbook itself.  When using bootcamp, if I were to create a word document for my statistical output in the windows 7 partition, would I be able to access it directly from the hard drive in the mac OS partition using windows for mac?  Any suggestions would be appreciated!

    I run both Windows and OS X on my Mac. I would never ever want the Windows partition to have write access to my OS X partition. Be cautious when considering this ability. I would much prefer sharing files by a third drive, be it a flash drive, and external HDD, NAS, or an SD card.

  • HT1296 I have a question about transferring files, photos etc, from my ipad air to my PC Windows XP and visa versa

    I want to know how to transfer files between my ipad air and my pc Windows XP.  I know I can't use icloud because my windows is XP, but there must be some easy way, I hope to transfer files back and forth.  If you know of a way or an app, is it user friendly?

    The way that you can transfer apps can vary depending upon the apps themselves. Many apps use iOS file sharing with iTunes. Read about file sharing here.
    iOS: About File Sharing - Support - Apple
    Some people use DropBox to move photos, videos and other files back and forth.
    Dropbox - Dropbox for iPad
    There are apps that will move files back and forth using USB and WiFi.
    File Manager - Folder Plus on the App Store on iTunes
    And of course  files can be transferred via email.

  • Question about pass file name and path to file write adapter

    I need to pass file name and path to file adapter for write. I got partial answers from thread Re: Get File name using File Adapter , but seems InboundHeader_msg or outboundHeader_msg only takes file name, how do I pass file directory?
    since I still have to specify file format (like xxx_%xx%.txt) in the file adapter wizard. Will this name conflict with what the name defined in InboundHeader_msg ?
    Similarly, how can I pass a file name and path to a file synchread adapter?
    Thanks,
    Message was edited by:
    user531689

    Just overwrite the filename in the WSDL file that was generated

  • Question about PageMaker files

    Can my old Mac Pagemaker files be open and used in the newer Mac with OS 10.6.8 which my Granddaughter has given me?  If so, with all InDesign versions?  I'm an old **** and this is the first time I'm trying to use a Discussion Group.  How do I know when there is an answer?  Do I have to keep this website open, or check back sometime, or will I receive an Email or phone call?  Please let me know by means other that this site, to get started with.  My Email is [removed by forum host] Thank you,  Gerda May
    Message was edited by: Peter Spier

    Dear Peter (if I be so personal).  First, thank you for deleting my Email
    address on the post and saving me a lot of spam.  Further, you were most
    gracious in sending more specifics in regard to the answer of my question about
    using PM files in InDesign.
    However, I am trying hard to understand your instructions to unembed "links" and
    bring them up to date.  However, I have no idea of what links are, are they
    something I would have intentionally done or are they automatic, and something
    of which I have no control over?  How do I locate them?  Are these procedures
    also necessity for using my old Photoshop 6 files?
    I only use 2 Programs: PageMaker 6.5 and Photoshop 6.  I have inherited a newer
    Mac with OS 10.6.8 which has only the basic Mac programs in it.  As you can
    guess, I need to identify which are the proper newer programs to obtain for it,
    with the least bit of effort and understanding.   
    I use PageMaker to write letters, and compose stories for printing in a Club
    magazine.  I also resurrect previous stories, that I've stored through the
    years.
    In Photoshop, I fix up new and old pictures for inclusion in stories and also
    resurrect previous photos I've stored on an external Hard Drive, or placed on a
    CD.
    If you would be so kind to steer me in the right direction, I will be most
    appreciative.  Trying to understand computer things is hard for me, and often
    times unsuccessful.  Please just smile and don't laugh, I'll bet you can't take
    shorthand or bake Dutch cookies, either!  Looking forward to some instructions,
    if you have the time, with many regards, Gerda May.

  • Question about pictures file in home folder

    I am trying to create more space on my hard drive and have a question about the pictures file.
    In addition to the iPhoto Library I have several folders named 1, 2, 3 etc each containing a bunch of photos; plus several hundred individual photo files.
    My question is whether these files are duplicates of what is in the iPhoto Library - and is there an easy way to find that out?
    And I guess also to find out how they got there in the first place. Could these be imports from disks as opposed to my digital camera?
    Thanks for any help,
    Laura

    Hey laura,
    I haven't used iPhoto for a while but from memory i think that i work similar to iTunes. Whne files are processed by iPhoto they are catalogued on the hard drive according to the iPhoto preferences. I would check out the iPhoto preferences and see if you can see anything in here that will tell you what is going on.

  • Question about Domain file size...

    I have a dot Mac account, and my iDisk capacity is 1 Gb.
    As I regularly back-up my Domain file from my G5 iMac to a FW external drive that sits on my desk, I have just noticed that the file size is now just over 1 Gb.
    Can someone please explain to me why I still have almost 700Mb left on my iDisk, yet my Domain file size is over 1 Gb?? Obviously, there must be 'internal' files that aren't copied to the iDisk.
    Thanks,
    Rachel.

    Wow, that's quite a discrepancy. 1gb Domain vs. 300mb site? Well suffice it to say that the Domain file contains all the information that is needed to generate your site. But it makes me curious too why you have such a large discrepancy. Do you have a lot of video on your site?
    My site is only about 50-60mb and my Domain is roughly the same size. When I first started using iWeb, I used to poke around inside the Domain file quite a bit more than I do now. You can open up your Domain file by Control-clicking it and selecting "Show Package Contents." At one point early on when I was blithely dragging and dropping stuff into iWeb and publishing just for experimentation, I noticed that even after I deleted images or EVEN WHOLE PAGES, that sometimes the Domain file would still contain images and quicktime movies left over from the deleted pages. I didn't know what was going on and actually tried to delete the "old" items from the Domain file, but I ended up with a non-functional Domain file...lots of error messages saying it was missing this and that. So I started over completely with a new Domain file. I also noticed at the time that my Domain file was several megabytes larger than my site.
    Since then, I have been very careful only to drag items to iWeb that will actually be used. The Domain-to-site size ratio has stayed pretty much 1:1. So I chalked up my earlier experience as a fluke. I don't know. Maybe there is an inconsistency somewhere. In fact, do a search here on "Domain file optimizing" or "Domain file bloat" and you may be able to find my questions about the issue. I never did get any responses, though.

Maybe you are looking for

  • Open url from applets

    Hello friends i have one very important job to do i would like my applet to open a browser window with the url that i specify in the textfield of my applet this is how it starts i open the applet that has a textfield and a button i enter the url in t

  • Using iPhoto but editing in Photoshop Elements 4.0

    I am using iPhoto to organize my photos and PS4 to edit. Can someone please explain to me what happens to the original and new picture after I edit the picture in PE4. Also can someone explain the Adobe Bridge?

  • Charging is not supported with this accessory

    Like the title says, I'm getting this error on my iphone 3gs. I've been reading thru some forums and other discussions about this and can't really figure out exactly what happened. I just started getting this after last night after I installed some a

  • [Error]List attribute binding not properly updating Iterator value

    Hi, I created an ADF Form page with ADF navigation buttons. Along with that I added Create, Commit and Rollback buttons in the form. One of my attributeValue binding i changed it to dynamic list binding with another iterator (LOV style). I removed al

  • Course manager iTunesU error

    I created an iTunesU account in the Course Manager as an independent instructor (my college does not have an iTunesU account). I can log in to course manager but the only  thing I can see is the Instructor Info page, my institution has been cleared,