RUNCOM

RUNCOM is a CTSS macro command (script) processor.[1]

History

Louis Pouzin created RUNCOM for CTSS circa 1963.[2] He released a paper in 1965 describing a design for the Multics shell which includes a brief description of RUNCOM[3] followed by a second paper he released five days later describing a design for RUNCOM that added commands for control flow, conditional branching and looping.[4]

In the context of Unix-like systems, the term rc stands for the phrase "run commands". It is used for any file that contains startup information for a command.

From Brian Kernighan and Dennis Ritchie:[5][6]

There was a facility that would execute a bunch of commands stored in a file; it was called runcom for "run commands", and the file began to be called "a runcom". rc in Unix is a fossil from that usage.

Tom Van Vleck, a Multics engineer, has also reminisced about the extension rc: "The idea of having the command processing shell be an ordinary slave program came from the Multics design, and a predecessor program on CTSS by Louis Pouzin called RUNCOM, the source of the '.rc' suffix on some Unix configuration files."[7]

This is also the origin of the name of the Plan 9 from Bell Labs shell by Tom Duff, the rc shell. It is called "rc" because the main job of a shell is to "run commands".

While not historically precise, rc may also be expanded as "run control", because an rc file controls how a program runs. For instance, the editor Vim looks for and reads the contents of the .vimrc file to determine its initial configuration. In The Art of Unix Programming, Eric S. Raymond consistently refers to rc files as "run-control" files.

Usage

Background

RUNCOM is not a shell in the sense of the UNIX shell. When a user type commands into CTSS they go to the supervisor (kernel), not any UNIX-shell-like program. Users cannot type commands into RUNCOM, it processes disk files. CTSS files have first name and a second name separated by spaces, e.g. FOO BCD.

Description of RUNCOM

RUNCOM command chains also known as macro-commands (both terms mean scripts) are files with a second name of either RUNCOM or BCD which contain zero or more lines. Lines in the script are either blank lines, comments, regular commands (the kind that could be entered on the supervisor's command line) or the pseudo-command (command built into RUNCOM only) CHAIN.

Comments start with either $ or * as the first character of the line. Comments using $ are printed (including the $) when RUNCOM runs while ones with * are not printed at all. Parameter substitution does not occur in comments.

When a user invoke RUNCOM, the arguments (parameters) to it must first start with the first name of the file containing the script. If a user invoke RUNCOM without any arguments it prints some instructions on how to use it and stops, returning the user to the supervisor's (system's) command line. The remaining arguments, if any, are either command names, values to be used as arguments in the script or the strings (NIL) or (END) including the parenthesis.

In the script, CHAIN give names to arguments which were used on the command line when RUNCOM was called, e.g. putting CHAIN LALA FAFA in the script and invoking RUNCOM XYZZY 3 will cause LALA in the script to be substituted into a 3 when it is used in any lines that come after CHAIN while FAFA will remain FAFA as RUNCOM was invoked without specifying anything for it.

If an argument to RUNCOM is (NIL), a positional parameter denoted as an argument to CHAIN in the script will be expand into nothing, e.g. CHAIN ALPHA BETA GAMMA combined with RUNCOM A (NIL) B will cause ALPHA to be substituted with A and GAMMA to B while BETA will be removed from any command that follows CHAIN in the script.

If a RUNCOM argument is (END) the corresponding CHAIN argument will be treated as (NIL) and all subsequent arguments will also be treated as (NIL).

Any parameter to CHAIN can be used as a command name in the script, i.e. can come first before any arguments. An example would be RUNCOM SCRIPT LISTF combined with CHAIN CMD followed by CMD at the start of a following line. CMD will be substituted into LISTF which will list the files in the directory (like the Unix ls command).

Once the substitutions have been completed, RUNCOM sends the commands to the SCHAIN library subroutine which is available to other programs as well.[1]

See also

References

  1. ^ a b Grisman, P.A., ed. (1969). The Compatible Time-Sharing System - A Programmer's Guide, 2nd Ed. Boston: The MIT Press. p. 525.
  2. ^ Pouzin, Louis (25 November 2000). "The Origin of the Shell". Multicians. Retrieved 31 July 2017.
  3. ^ Pouzin, Louis (April 2, 1965). The SHELL: A Global Tool for Calling and Chaining Procedures in the System (PDF) (Report). Massachusetts Project Institute of Technology Project MAC. MDN-4. Retrieved April 9, 2022.
  4. ^ Pouzin, Louis (April 7, 1965). RUNCOM - A Macro-Procedure Processor for the 636 System (PDF) (Report). Massachusetts Project Institute of Technology Project MAC. MDN-4. Retrieved April 9, 2022.
  5. ^ "In Unix, what do some obscurely named commands stand for?". IT Knowledge Base. Indiana University. Retrieved 2024-01-06.
  6. ^ https://www.oreilly.com/pub/au/2933 O'Reilly, Bio for Vicki Brown
  7. ^ "Unix and Multics". Retrieved 2009-04-20.

Read other articles:

King of the United Kingdom from 1901 to 1910 For other uses, see Edward VII (disambiguation). Edward VIIPortrait by W. & D. Downey, 1900s King of the United Kingdomand the British Dominions Emperor of India Reign22 January 1901 – 6 May 1910Coronation9 August 1902Imperial Durbar1 January 1903PredecessorVictoriaSuccessorGeorge VBorn(1841-11-09)9 November 1841Buckingham Palace, London, EnglandDied6 May 1910(1910-05-06) (aged 68)Buckingham Palace, London, EnglandBurial20 May 1910R...

 

Beberapa versi Ramayana menceritakan bahwa Maya Sita yang sebenarnya diculik oleh Rahwana bukannya Dewi Sita yang asli. Maya Sita (Sanskerta: माया सीता, ilusi Sita) atau Chaya Sita (छाया सीता, bayangan Sita) adalah duplikat ilusi dari Dewi Sita. Dalam beberapa adaptasi epik Hindu Ramayana yang diculik oleh raja Rahwana dari kerajaan Alengka sebenarnya adalah Maya Sita bukannya Dewi Sita yang asli.[1] Referensi ^ Is Maya Sita story impossible?. Raman...

 

Heathcote Botanical Gardens Heathcote Botanical Gardens is a five-acre subtropical botanical garden located at 210 Savannah Road, Fort Pierce, Florida, United States. This magnificent formal upright Ficus greets visitors entering the main gate to the James J. Smith Bonsai Collection. It is more than four feet across. Heathcote is a non-profit, 501 (C)3 educational foundation that bills itself as the Green Heart of the Treasure Coast. It began in 1960 as the commercial nursery of landscape arc...

Cet article est une ébauche concernant un acteur américain. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les conventions filmographiques. Pour les articles homonymes, voir Lou et Ferrigno. Lou Ferrigno Lou Ferrigno en 2019. Données clés Nom de naissance Louis Jude Ferrigno Surnom Big Louie Naissance 9 novembre 1951 (72 ans)Brooklyn, New York (États-Unis) Nationalité Américaine Profession Acteur, culturiste Films notables HerculeThor : Ragn...

 

Questa voce sull'argomento cestisti statunitensi è solo un abbozzo. Contribuisci a migliorarla secondo le convenzioni di Wikipedia. Segui i suggerimenti del progetto di riferimento. Thomas Bryant Thomas Bryant con la maglia dei Washington Wizards Nazionalità  Stati Uniti Altezza 208 cm Peso 112 kg Pallacanestro Ruolo Centro Squadra  Miami Heat CarrieraGiovanili Bishop Kearney High SchoolHuntington Prep High School2015-2017 Indiana HoosiersSquadre di club 2017-2018 ...

 

Hibiki-class ocean surveillance ship JS Harima at Kure on 15 September 2014 History Japan Name Harima (はりま) NamesakeHarima Ordered1990 BuilderMitsui, Tamano Laid down26 December 1990 Launched11 September 1991 Commissioned10 March 1992 HomeportKure Identification MMSI number: 431999585 Pennant number: AOS-5202 StatusActive General characteristics Class and typeHibiki-class ocean surveillance ship Displacement2,850–3,800 long tons (2,896–3,861 t) full load Length67.0 m (219....

Si ce bandeau n'est plus pertinent, retirez-le. Cliquez ici pour en savoir plus. Cet article peut contenir un travail inédit ou des déclarations non vérifiées (avril 2021). Vous pouvez aider en ajoutant des références ou en supprimant le contenu inédit. Voir la page de discussion pour plus de détails. Millebosc Mairie. Blason Administration Pays France Région Normandie Département Seine-Maritime Arrondissement Dieppe Intercommunalité Communauté de communes des Villes Sœurs Maire ...

 

VISA beralih ke halaman ini. Untuk kegunaan lain, lihat Visa (disambiguasi). Visa Inc.Kantor pusat Visa Inc. di Metro Center di Foster CityJenisPublikKode emitenNYSE: VDJIA ComponentS&P 100 ComponentS&P 500 ComponentIndustriJasa keuanganDidirikan1958; 66 tahun lalu (1958) (sebagai BankAmericard)Fresno, California, Amerika SerikatPendiriDee HockKantorpusatFoster City,[1] California, Amerika SerikatWilayah operasiSeluruh duniaTokohkunciAlfred F. Kelly (CEO)ProdukKartu kredi...

 

Artikel ini sebatang kara, artinya tidak ada artikel lain yang memiliki pranala balik ke halaman ini.Bantulah menambah pranala ke artikel ini dari artikel yang berhubungan atau coba peralatan pencari pranala.Tag ini diberikan pada Juni 2019. Artikel ini tidak memiliki referensi atau sumber tepercaya sehingga isinya tidak bisa dipastikan. Tolong bantu perbaiki artikel ini dengan menambahkan referensi yang layak. Tulisan tanpa sumber dapat dipertanyakan dan dihapus sewaktu-waktu.Cari sumber:...

Hukum KewarganegaraanDiet NasionalKutipanNo. 147 Tahun 1950Jangkauan teritorialJepangDiatur olehKementerian KehakimanStatus: Secara substansial diamandemenkan Hukum Kewarganegaraan Jepang menjelaskan ketentuan yang memungkinkan seseorang memiliki kewarganegaraan Jepang. Hukum utama yang mengatur regulasi kewarganegaraan adalah Undang-Undang Kewarganegaraan tahun 1950. Anak yang lahir dari setidaknya satu orang tua Jepang umumnya secara otomatis menjadi warga negara saat lahir. Kelahiran di Je...

 

هذه المقالة تحتاج للمزيد من الوصلات للمقالات الأخرى للمساعدة في ترابط مقالات الموسوعة. فضلًا ساعد في تحسين هذه المقالة بإضافة وصلات إلى المقالات المتعلقة بها الموجودة في النص الحالي. (ديسمبر 2013) صفيحة حجاجية للعظم الغربالي الاسم العلميlamina orbitalis ossis ethmoidalis, os planum عظم غربالي f...

 

Map of Washington's 39th legislative district Washington's 39th legislative district is one of forty-nine districts in Washington state for representation in the state legislature. The rural district contains most of Snohomish and Skagit counties and the northeastern corner of King County.[1] This district's legislators are state senator Keith Wagoner and state representatives Sam Low (position 1) and Carolyn Eslick (position 2), all Republicans.[2][3] See also Washin...

Nördliche Querhausfassade mit hoch­goti­schem Portal und spät­goti­scher Flam­bo­yant-Rosette Die Kathedrale Saint-André ist ein Sakralbau in Bordeaux (Frankreich), der dem Erzbistum Bordeaux als Sitz dient. Das Kulturdenkmal wurde im Jahr 1862 als Monument historique klassifiziert und steht als solches unter Denkmalschutz. Inhaltsverzeichnis 1 Beschreibung 2 Orgel 3 Einzelnachweise 4 Weblinks Beschreibung Der Turm Pey-Berland der Kathedrale Saint-André Langh...

 

2011 international military operation in Libya Operation Odyssey DawnPart of the 2011 military intervention in Libya and the Libyan Civil WarUSS Barry fires a Tomahawk cruise missile during Operation Odyssey Dawn.Date19–31 March 2011LocationLibyaResult NATO victoryEffective no-fly zone established[1]Operations handed over to NATO Operation Unified ProtectorBelligerents  United States  Libyan Arab JamahiriyaCommanders and leaders Barack ObamaPresident of the United Sta...

 

Gli idrossidi sono composti salini ternari costituiti da un metallo, ossigeno e idrogeno e hanno formula generale M(OH)n, dove n è il numero di gruppi anione idrossido[1] (OH-) legati al catione metallico. Gli idrossidi disciolti nell'acqua, dissociandosi, rilasciano il gruppo OH- e uno ione metallico positivo. Formula di struttura di uno ione idrossido (OH-). Sono indicati anche i doppietti elettronici sull'atomo di ossigeno. Rappresentazione 3D di uno ione idrossido (OH-). Sono tut...

Christian university in Grayson, Kentucky Kentucky Christian UniversityFormer namesChristian Normal Institute (1919–1944)Kentucky Christian College (1944–2004)TypePrivate universityEstablished1919Religious affiliationChristian churches and churches of ChristPresidentTerry AllcornStudents500[1]LocationGrayson, Kentucky, United States38°20′28″N 82°56′49″W / 38.341°N 82.947°W / 38.341; -82.947Colors   Red & BlackSporting affiliationsN...

 

1973 Santiago gay protestPlaza de Armas in Santiago, ChileDateApril 22, 1973 (1973-04-22)Time19:00-20:00LocationSantiagoCoordinates33°26′15″S 70°38′59.9″W / 33.43750°S 70.649972°W / -33.43750; -70.649972TypeDemonstrationMotiveProtest against police abuses The gay protest in the Plaza de Armas in Santiago, which occurred on 22 April 1973,[1] was the first LGBT demonstration in Chile, as well as one of the first in Latin America.[2&...

 

Mulchis Anwar Informasi pribadiLahir(1943-12-06)6 Desember 1943Pasar Muara Labuh, Sungai Pagu, Solok Selatan, Sumatera BaratMeninggal26 Mei 2023(2023-05-26) (umur 79)RSI Hospital YogyakartaAlma materAkademi Militer Nasional (AMN 1965)Karier militerPihak IndonesiaDinas/cabang TNI Angkatan DaratMasa dinas1965—1995Pangkat Mayor Jenderal TNISatuanInfanteri (Kopassus)Sunting kotak info • L • B Mayjen TNI (Purn.) Mulchis Anwar (6 Desember 1943 – 26 Mei...

هذه مقالة غير مراجعة. ينبغي أن يزال هذا القالب بعد أن يراجعها محرر؛ إذا لزم الأمر فيجب أن توسم المقالة بقوالب الصيانة المناسبة. يمكن أيضاً تقديم طلب لمراجعة المقالة في الصفحة المخصصة لذلك. (مايو 2020) رقعة الذراع الوطنية لقوة الشرطة الثورية. سيارة PNR ، سيارة بيجو 106 ، يتم تنظيفه...

 

Genus of fungi Trichaptum Trichaptum abietinum Scientific classification Kingdom: Fungi Division: Basidiomycota Class: Agaricomycetes Order: Hymenochaetales Family: Incertae sedis Genus: TrichaptumMurrill (1904) Type species Trichaptum trichomallum(Berk. & Mont.) Murrill Synonyms[3] Hirschioporus Donk (1933)[1] Poriodontia Parmasto (1982)[2] Trichaptum is a genus of poroid fungi. The genus was circumscribed by American mycologist William Alphonso Murrill in 1904.&#...