{"id":23,"date":"2013-07-25T15:04:00","date_gmt":"2013-07-25T15:04:00","guid":{"rendered":"http:\/\/ibcloud.com.br\/blog\/trocar-mensagens-pelo-prompt-no-linux-terminal-shell\/"},"modified":"2014-05-13T02:55:16","modified_gmt":"2014-05-13T02:55:16","slug":"trocar-mensagens-pelo-prompt-no-linux-terminal-shell","status":"publish","type":"post","link":"https:\/\/humanizati.com.br\/blog\/2013\/07\/25\/trocar-mensagens-pelo-prompt-no-linux-terminal-shell\/","title":{"rendered":"Trocar mensagens pelo prompt no Linux (Terminal Shell)"},"content":{"rendered":"<p><span style=\"font-family: Arial, Helvetica, sans-serif;\">Eai gurizada!<\/span><\/p>\n<div><span style=\"font-family: Arial, Helvetica, sans-serif;\"><br \/><\/span><\/div>\n<div><span style=\"font-family: Arial, Helvetica, sans-serif;\">Seguinte, volta e meia eu to conectado em algum servidor linux com mais algum t\u00e9cnico logado local neste mesmo server e as vezes preciso trocar algumas informa\u00e7\u00f5es r\u00e1pidas com essa pessoa.<\/span><\/div>\n<div><span style=\"font-family: Arial, Helvetica, sans-serif;\"><br \/><\/span><\/div>\n<div><span style=\"font-family: Arial, Helvetica, sans-serif;\">Tem um jeito muito legal de fazer isso que usando o comando &#8216;wall&#8217; e &#8216;write&#8217;, conforme abaixo:<\/span><\/div>\n<div><span style=\"font-family: Arial, Helvetica, sans-serif;\"><br \/><\/span><\/div>\n<div>\n<div style=\"background-color: black; color: #cccccc; font-size: 13px; line-height: 20.796875px;\"><span style=\"font-family: Arial, Helvetica, sans-serif;\"><span style=\"color: #0080ff;\">root@localhost:\/<\/span><span style=\"color: #0080ff;\">#&nbsp;<span style=\"color: #80ff00;\">wall&nbsp;&nbsp;&nbsp;&nbsp;<em><span style=\"color: yellow;\">( pressione Enter )<\/span><\/em><br \/>Oi parcero! Qual a placa instalada nesse server?<\/span>&nbsp; &nbsp;&nbsp;<\/span><span style=\"color: yellow;\"><em>( Ctrl-D para enviar )<\/em><\/span><\/span><\/div>\n<div style=\"background-color: black; color: #cccccc; font-size: 13px; line-height: 20.796875px;\"><span style=\"font-family: Arial, Helvetica, sans-serif;\"><span style=\"color: #0080ff;\">Broadcast Message from&nbsp;fulano<\/span><span style=\"color: #0080ff;\">@localhost<\/span><br \/><span style=\"color: #0080ff;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (\/dev\/pts\/2) at 22:21 &#8230;<\/span><\/span><\/div>\n<div style=\"background-color: black; color: #cccccc; font-size: 13px; line-height: 20.796875px;\"><span style=\"font-family: Arial, Helvetica, sans-serif;\"><span style=\"color: #80ff00;\">Oi parcero! Qual a placa instalada nesse server?<\/span><br \/><span style=\"color: #0080ff;\">root@localhost:\/<\/span><span style=\"color: #0080ff;\">#<\/span><\/span><\/div>\n<div style=\"color: #cccccc; font-size: 13px; line-height: 20.796875px;\"><span style=\"background-color: white; color: #0080ff; font-family: Arial, Helvetica, sans-serif;\"><br \/><\/span><\/div>\n<div style=\"color: #cccccc; font-size: 13px; line-height: 20.796875px;\"><span style=\"background-color: white; color: black; font-size: small; line-height: normal;\"><span style=\"font-family: Arial, Helvetica, sans-serif;\">Desse jeito ele manda a mensagem para todos os usu\u00e1rios logados.<\/span><\/span><\/div>\n<div style=\"color: #cccccc; font-size: 13px; line-height: 20.796875px;\"><span style=\"background-color: white; color: black; font-size: small; line-height: normal;\"><span style=\"font-family: Arial, Helvetica, sans-serif;\"><br \/><\/span><\/span><\/div>\n<div style=\"color: #cccccc; font-size: 13px; line-height: 20.796875px;\"><span style=\"background-color: white; color: black; font-size: small; line-height: normal;\"><span style=\"font-family: Arial, Helvetica, sans-serif;\">J\u00e1 o &#8216;write&#8217; manda s\u00f3 para um usu\u00e1rio espec\u00edfico, assim:<\/span><\/span><\/div>\n<div style=\"color: #cccccc; font-size: 13px; line-height: 20.796875px;\"><span style=\"background-color: white; color: black; font-size: small; line-height: normal;\"><span style=\"font-family: Arial, Helvetica, sans-serif;\"><br \/><\/span><\/span><\/div>\n<div style=\"background-color: black; color: #cccccc; font-size: 13px; line-height: 20.796875px;\"><span style=\"font-family: Arial, Helvetica, sans-serif;\"><span style=\"color: #0080ff;\"><span style=\"color: #0080ff;\">root@localhost:\/<\/span><span style=\"color: #0080ff;\">#<\/span>&nbsp;<\/span><span style=\"color: #80ff00;\">write testuser&nbsp;&nbsp;&nbsp;&nbsp;<\/span><em><span style=\"color: yellow;\">( pressione Enter )<\/span><\/em><br \/><span style=\"color: #80ff00;\">Testing 123&#8230;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: yellow;\"><em>( Ctrl-D para enviar )<\/em><\/span><\/span><\/div>\n<div style=\"background-color: black; color: #cccccc; font-size: 13px; line-height: 20.796875px;\"><span style=\"color: #0080ff; font-family: Arial, Helvetica, sans-serif;\">Message from fulano@localhost on pts\/2 at 22:26 &#8230;<br \/>Testing 123&#8230;<br \/>EOF<br \/><span style=\"color: #0080ff;\">root@localhost:\/<\/span><span style=\"color: #0080ff;\">#<\/span><\/span><\/div>\n<div style=\"color: #cccccc; font-size: 13px; line-height: 20.796875px;\"><span style=\"font-family: Arial, Helvetica, sans-serif;\"><br \/><\/span><\/div>\n<p><span style=\"font-family: Arial, Helvetica, sans-serif;\">\u00c9 isso ai, s\u00f3 se comunicar via terminal.<\/span><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Eai gurizada! Seguinte, volta e meia eu to conectado em algum servidor linux com mais algum t\u00e9cnico logado local neste mesmo server e as vezes&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[45,44,46],"class_list":["post-23","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-conversa-por-terminal-linux","tag-mensagem-prompt-linux","tag-mensagem-terminal-linux"],"_links":{"self":[{"href":"https:\/\/humanizati.com.br\/blog\/wp-json\/wp\/v2\/posts\/23","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/humanizati.com.br\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/humanizati.com.br\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/humanizati.com.br\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/humanizati.com.br\/blog\/wp-json\/wp\/v2\/comments?post=23"}],"version-history":[{"count":1,"href":"https:\/\/humanizati.com.br\/blog\/wp-json\/wp\/v2\/posts\/23\/revisions"}],"predecessor-version":[{"id":83,"href":"https:\/\/humanizati.com.br\/blog\/wp-json\/wp\/v2\/posts\/23\/revisions\/83"}],"wp:attachment":[{"href":"https:\/\/humanizati.com.br\/blog\/wp-json\/wp\/v2\/media?parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/humanizati.com.br\/blog\/wp-json\/wp\/v2\/categories?post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/humanizati.com.br\/blog\/wp-json\/wp\/v2\/tags?post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}