home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / aix / 13013 < prev    next >
Encoding:
Text File  |  1993-01-05  |  1.9 KB  |  65 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!uunet.ca!canrem!dosgate!dosgate![harry.tempelman@canrem.com]
  3. From: "harry tempelman" <harry.tempelman@canrem.com>
  4. Subject: c menu program (#2)
  5. Message-ID: <1993Jan5.4577.16932@dosgate>
  6. Reply-To: "harry tempelman" <harry.tempelman@canrem.com>
  7. Organization: Canada Remote Systems
  8. Distribution: comp
  9. Date: 5 Jan 93 13:10:17 EST
  10. Lines: 53
  11.  
  12. (Continued from the previous message)
  13.  
  14.        printf("\t\t\t(F)  Read Ford Standard 9 track tape\n");
  15.        printf("\t\t\t(R)  Return to Main Menu\n");
  16.        printf("\t\t\t(Q)  Quit\n");
  17.  
  18.        printf("\n\t\t\t     Choice: ");
  19.     }
  20. }
  21.  
  22. /****************************************************************************/
  23. /* rmtread                                                                  */
  24. /****************************************************************************/
  25. void rmt1read()
  26. {
  27.     char answer;
  28.     {
  29.        rmt1read_menu();
  30.        answer = getchar();
  31.        answer = tolower(answer);
  32.        switch (answer)
  33.           {
  34.               case 'c' : {
  35.                          char *pc;
  36.                          printf("\nEnter file to read: ");
  37.                          scanf("%s",pc);
  38.                          pc = (char *)malloc(10 * sizeof(char));
  39.           pc = strcpy("dd if=/dev/rmt1.1 if=/tmp/",pc,"ibs=1600 conv=sync");
  40.                          system(pc);
  41.                          }
  42.           rmt1read();
  43.           case 'f' : system("ls /tmp"); rmt1read();
  44.           case 'r' : start();
  45.           case 'q' : exit(1);
  46.           default  : rmt1read();
  47.  }
  48.     }
  49. }
  50.  
  51.  
  52.  
  53. Any response is appreciated.....
  54.  
  55. Harry Tempelman
  56. APEX METALS INC.
  57.  
  58.  APEX METALS INC.   .   .   .   .    __|__    .   . harry.tempelman@canrem.com
  59. .   .   .   .   .   .   .   . --o--o--(_)--o--o-- .   .   .   .   .   .   .   .
  60. ---
  61.  ■ DeLuxe² 1.20 #11534 ■ REALITY.SYS Corrupted: Reboot universe? [Y/N]
  62. --
  63. Canada Remote Systems  - Toronto, Ontario
  64. World's Largest PCBOARD System - 416-629-7000/629-7044
  65.