Script (유닉스)

script 명령어는 터미널 세션을 기록하는 유닉스 유틸리티이다.[1] scriptreplay 명령어는 script에 리플레이 기능을 제공한다.[2] 이 세션은 기본적으로 typescript라는 파일 이름으로 포착된다. 다른 파일 이름을 지정하려면 script 명령어 뒤에 공백을 두고 다음과 같이 파일 이름을 지정하면 된다: script recorded_session.

ttyrec 프로그램은 동일한 종류의 기능 외에 다른 몇 가지 바인딩을 제공한다.

기록된 셸 세션들은 온라인 서비스들을 사용하여 공유할 수 있다.[3] 일반적인 스크린캐스트로부터 이러한 형태로 기록된 세션을 사용할 때의 이점은 셸 명령들을 쉽게 플레이어 스크린에서 복사해서 붙여넣을 수 있다는 것이다.

script 명령어의 대안

script 명령어의 문제점들 가운데 하나는 자식 프로세스의 로깅만을 허용한다는 것이다. 또, 새로운 프로세스를 스폰(spawn)하지 않고 현재의 프로세스의 명령을 로깅해야 할 수 있는데, 이를테면 자체 출력을 기록할 수 있는 스크립트의 자동화가 필요한 시점을 들 수 있다. 유닉스 운영 체제는 파이프와 리다이렉트를 사용하여 이를 가능케 한다. 다음의 예들을 고려할 수 있다:

본 셸

본 셸과 관련되는 모든 셸(sh, bash, ksh)들은 stdout과 stderr이 지명 파이프에 부착되도록 할 수 있으며 tee 명령어로 리다이렉트가 가능하게 할 수 있다.

LOGNAME="script"
rm -f $LOGNAME.p $LOGNAME.log
mknod $LOGNAME.p p
tee  <$LOGNAME.p $LOGNAME.log &
exec >$LOGNAME.p 2>&1

위의 스크립트는 script.log에 "exec" 명령의 모든 출력을 기록한다. 그러나 동일한 상호작용 프로그램(예: 파이썬)들은 결과 셸 아래에 있을 때 표준 입력을 표시하지 않지만 script 명령 하에서 실행할 때에는 표준 입력을 표시한다.

같이 보기

각주

  1. http://www.freebsd.org/cgi/man.cgi?query=script
  2. “LinuxInsight - Replaying terminal sessions with scriptreplay”. 2016년 4월 21일에 원본 문서에서 보존된 문서. 2017년 11월 11일에 확인함. 
  3. The instructions at this link no longer work due to the demise of the shelr.tv service. OMG! Ubuntu! - How To Record And Share Terminal Screencasts Quickly Archived 2017년 7월 19일 - 웨이백 머신

Read other articles:

State highway in Somerset County, Pennsylvania, US Pennsylvania Route 601Route informationMaintained by PennDOTLength26.669 mi[1] (42.920 km)Major junctionsSouth end PA 31 / PA 281 in SomersetMajor intersections I-70 / I-76 / Penna Turnpike in Somerset US 219 in Somerset Township PA 985 in Lincoln Township US 30 in Jenner Township US 219 in Conemaugh Township PA 403 in BensonNorth end PA 56 in Paint Locati...

 

Angel CoulbyAngel Coulby di Japan Expo 2010PekerjaanAktrisTahun aktif2001-sekarang Angel Coulby (lahir 30 Agustus 1980) adalah aktris asal Inggris. Ia dikenal sebagai Guinevere (Gwen) dalam serial fantasi BBC, Merlin. Filmografi Tahun Judul Peran Catatan 2001 'Orrible Shiv 4 episode 2002 Casualty Sally Episode: In the Heat of the Night 2002 Having It Off Kylie Riley TV series 2002 Good Thief, AA Good Thief Leah Pickering TV movie 2003 Second Coming, TheThe Second Coming PC Louise Fraser ...

 

18th-century Rococo Portuguese palace in Lisbon The Palace of Queluz. The Ceremonial Façade of the corps de logis designed by Mateus Vicente de Oliveira. Queen Maria I and King Pedro III, the founders of Queluz Palace The Palace of Queluz (Portuguese: Palácio de Queluz, Portuguese pronunciation: [kɛˈluʃ]) is an 18th-century palace located at Queluz, a city of the Sintra Municipality, in the Lisbon District, on the Portuguese Riviera. One of the last great Rococo buildings to be d...

Tranvia Torino-PiobesiStazione di Piobesi TorineseInizioTorino FinePiobesi Torinese Inaugurazione1882 (Torino-Vinovo)1904 (Vinovo-Piobesi) Chiusura1934 (Stupinigi-Piobesi)1956 (Torino-Stupinigi) GestoreATM Vecchi gestoriBerrier-Delaleu (1882-1890)Società Torinese di Tramways e Ferrovie Economiche (1890-1926)ETOS (1926-1935) ClassificazioneLinea 41 (1936-1956) Tipotranvia extraurbana Mezzi utilizzatitram a vaporeelettromotrici Scartamento1.445 mm Trasporto pubblico Manuale La tranvia Torino-P...

 

Child Exploitation and Online Protection CommandHistoireFondation 2006CadrePays  Royaume-UniOrganisationSite web www.ceop.police.ukmodifier - modifier le code - modifier Wikidata Le Child Exploitation and Online Protection Command (CEOP Command ou CEOP) est un organisme de la police du Royaume-Uni, rattaché à la National Crime Agency. Fondé en avril 2006 sous le nom de Child Exploitation and Online Protection Centre, le CEOP est chargé de lutter, à l'échelle nationale et internatio...

 

Cessna 750 Citation X Тип Бізнес-джетРозробник Cessna Aircraft CompanyВиробник CessnaПерший політ 21 грудня 1993Початок експлуатації 1996Статус експлуатуєтьсяОсновні експлуатанти приватні експлуатантиРоки виробництва 1996 — н.ч.Виготовлено 330Вартість одиниці $22 млн  Cessna Citation X у Вікісховищі «Cess...

Madilog Title page of the 1951 edition. aPengarangTan Malaka bJudul asliMadilogPenerjemahTed Sprague (dalam bahasa Belanda)NegaraIndonesiaBahasaBahasa IndonesiaSubjekFilsafat (sintesis Materialisme dialektikal dan Logika)Diterbitkan1943Halaman568 (Edisi Indonesia pertama)[1]a Edisi pertama (1943) adalah penerbitan pribadi penulis. b Penerbitan pertama, Malaka menggunakan nama pena Iljas Hussein. Bagian dari seri tentangMarxisme Teori kerja Manifesto Komunis Sebuah Kontribusi untu...

 

Jembatan Qingdao HaiwanKoordinat36°10′12″N 120°17′54″E / 36.169913°N 120.298305°E / 36.169913; 120.298305Koordinat: 36°10′12″N 120°17′54″E / 36.169913°N 120.298305°E / 36.169913; 120.298305Moda transportasiKendaraan bermotorMelintasiTeluk JiaozhouLokaldi antara Qingdao, Provinsi Shandong dan Distrik Huangdao,  TiongkokKarakteristikDesainJembatan kabel penahanBahan bakuBeton pratekanPanjang total4.158 mil (6.692 ...

 

Brazilian football club This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Associação Desportiva Perilima – news · newspapers · books · scholar · JSTOR (July 2019) (Learn how and when to remove this template message) Football clubPerilima[1]Full nameAssociação Desportiva PerilimaNickname(s)Time da S...

Execution venue and burial ground in Moscow Oblast Entrance gate into the Kommunarka shooting ground in 2012 Grave markers for some of the victims at Kommunarka Photos of some of the victims The Kommunarka firing range (Russian: Расстрельный полигон «Коммунарка»), former dacha of secret police chief Genrikh Yagoda, was used as a burial ground from 1937 to 1941. Executions may have been carried out there by the NKVD during the Great Terror and until the war start...

 

Aldo Angoula Informasi pribadiNama lengkap Aldo AngoulaTanggal lahir 4 Mei 1981 (umur 42)Tempat lahir Le Havre, PrancisTinggi 1,84 m (6 ft 1⁄2 in)Posisi bermain BekInformasi klubKlub saat ini Évian Thonon Gaillard FCNomor 17Karier junior1989-1997 Tréfileries Le Havre1997-2001 Le Havre ACKarier senior*Tahun Tim Tampil (Gol)2001-2004 US Fécamp 2004-2005 GCO Bihorel 2005-2007 FUSC Bois-Guillaume 54 (5)2007- US Boulogne 13 (0)2009- Évian Thonon Gaillard FC 102 (12) *...

 

Collectible card game This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) A major contributor to this article appears to have a close connection with its subject. It may require cleanup to comply with Wikipedia's content policies, particularly neutral point of view. Please discuss further on the talk page. (May 2020) (Learn how and when to remove this template message) This article needs addi...

A brake wear indicator is used to warn the operator of a vehicle that the brake pad is in need of replacement. The main area of use for this is on motor vehicles with more than three wheels. However brake wear indicators are also useful for brake pads in industrial applications, including wind turbines and cranes.[1][2] This article refers to disc brakes as an example, but the principle is the same for other types of friction brakes. Types of indicators There are different typ...

 

Web directory This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Yahoo! Directory – news · newspapers · books · scholar · JSTOR (January 2008) (Learn how and when to remove this template message) Yahoo! DirectoryType of siteWeb directoryOwnerYahoo!URLArchived November 22, 2014, at the Wayback MachineCommercialy...

 

Blue Flag (ejercicio militar) Pilotos israelíes, estadounidenses e italianos durante el Blue Flag de 2013.Tipo ejercicio militar y evento recurrente[editar datos en Wikidata] Blue Flag (en español, Bandera azul) es un ejercicio de aviación militar bienal de carácter internacional organizado por la Fuerza Aérea de Israel (FAI).[1]​ Su propósito es simular situaciones de combate en una multitud de escenarios utilizando avanzados sistemas de armas, principalmente los avione...

2010 film by Christopher Smith Black DeathTheatrical release posterDirected byChristopher SmithWritten by Dario Poloni Christopher Smith (uncredited)[1] Produced by Douglas Rae Robert Bernstein Jens Meurer Phil Robertson Starring Sean Bean Eddie Redmayne John Lynch Tim McInnerny Kimberley Nixon Andy Nyman Carice van Houten CinematographySebastian EdschmidEdited byStuart GazzardMusic byChristian HensonProductioncompanies Egoli Tossell Film HanWay Films Ecosse Films Zephyr Films Di...

 

1992 film Not to be confused with Far Away (disambiguation). Far and AwayTheatrical release posterDirected byRon HowardScreenplay byBob DolmanStory by Ron Howard Bob Dolman Produced by Ron Howard Brian Grazer Bob Dolman Starring Tom Cruise Nicole Kidman Thomas Gibson Robert Prosky Cyril Cusack CinematographyMikael SalomonEdited by Daniel P. Hanley Mike Hill Music byJohn WilliamsProductioncompanyImagine EntertainmentDistributed byUniversal PicturesRelease date May 22, 1992 (1992...

 

Railway station in Miyama, Fukuoka Prefecture, Japan JB  22  Setaka Station瀬高駅 Setaka Station in 2006General informationLocationMiyama, FukuokaJapanCoordinates33°09′25″N 130°29′07″E / 33.15695°N 130.48514°E / 33.15695; 130.48514Operated by JR KyushuLine(s)■ Kagoshima Main Line,Distance132.2 km from MojikōPlatforms1 side + 1 island platformsTracks3 + 1 sidingConstructionStructure typeAt gradeAccessibleYes - footbridge to platforms equ...

Italian archer This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) This biography of a living person needs additional citations for verification. Please help by adding reliable sources. Contentious material about living persons that is unsourced or poorly sourced must be removed immediately from the article and its talk page, especially if potentially libelous.Find sources: Sergio Pagni&...

 

Si ce bandeau n'est plus pertinent, retirez-le. Cliquez ici pour en savoir plus. La mise en forme de cet article est à améliorer (avril 2024). La mise en forme du texte ne suit pas les recommandations de Wikipédia : il faut le « wikifier ». Le cinéma en 2019. Le Film Forum est un cinéma à but non lucratif situé au 209 West Houston Street dans le quartier de Greenwich Village, à Manhattan. Histoire Il a ouvert ses portes en 1970 en tant qu'espace de projection alternat...

 

Strategi Solo vs Squad di Free Fire: Cara Menang Mudah!