I open up 2 xterms on my desktop, A(/dev/pts/0) and B(/dev/pts/1).I can write from A to B using redirection e.g. echo "test" > /dev/pts/1How do I run a command from A on B? e.g. "clear"Basically I'm putting the 2 terminals side by side, and using terminal B to display the contents of the current working directory, by running the following in A:export PROMPT_COMMAND="ls -a > /dev/pts/1"but this fills up the screen pretty fast. I was actually looking for a way to clear up the second terminal.
Is there a script I can use to send a command VIA terminal to wipe an entire machine of data? If for example there is an intrusion valuable data can be at risk, it would need to be erased.
" > logfile.txt : gives an error extra character after the "
2- logsave logfile.txt 'send "show command;
" ': error invalid command
3- i simply tried to send the output of the whole script to file logsave /home/logfile ./script : seems that logsave work under root only
4- ./script > logfile : the problem with this is that the output of echo or (read "enter your id") command will not be displayed on the screen (actually nothing will be displayed, i have to open the log file to see the output). is there any way to save the log of the "send" ? or to save the log of the complete script without hiding the output on the screen?
I am using pine as email client for a while, and I noticed that if I got a new email, all terminal opened will show a notification if you type any command.
I just wondering is there any tool/command I can customize my own notification like this and work combine with crontab?
I search google for a little bit, no useful clue so far?
i am trying to send message through terminal with smbclient, i have searched the net and found this command
Code: smbclient -M <hostname> now i am confused on hostname, which i open the network folder i see to icons 1. is my laptop 2. Windows Network
when i enter Windows Network folder i see 2 more icons 1.MSHOME 2.WORKGROUP
and when i enter MSHOME folder i see one icon 1. MIRZA-SAAD this is the computer which has xp in it i want to send message to it with smbclient now how when i write this command i see this error
I typically use rm to delete files, but they don't end up in my trash folder in case I want to recover them. How do I make that happen and how do I access my trash folder via terminal? Doing me best to work from terminal rather than GUI and this one has me stumped. I am using Mint Julia.
how to pass something more than a one-command startup for gnome-terminal. I will give an example of what I'm trying to do here:
Code:
#! /bin/bash # #TODO write this for gnome and xterm
[code]....
This same error occurs if the gnome-terminal line is changed to
Code:
gnome-terminal -e mcTerm
Is there any way to pass more than one command on to gnome-terminal? I have tried various single and double quoting senarios and in a final attempt, I abstracted to an exported function all to no avail. Perhaps even though gnome-term is better at many things than xterm, xterm trumps it in this instance.
In my continuing quest to live without X most of the time, I am trying to set up fetchmail and Mutt to get and send mail. I only want to be able to send and receive text based mail, and so far I am running into trouble with what I think should be pretty simple. For receiving my mail, I believe I only need to create a .fetchmailrc file in my home directory with the entry:
Code: poll [URL] protocol pop3 username "myusername" password "mypassword" But I get: 2 messages for myusername at mail.myISP.com (7965 octets). fetchmail: connection to localhost:smtp [127.0.0.1/25] failed: Connection refused. fetchmail: SMTP connect to localhost failed fetchmail: SMTP transaction error while fetching from wetumpka@mail.btopenworld.com and delivering to SMTP host localhost reading message myusername@pop-smtp.ISP.mail.fy5.b.yahoo.com:1 of 2 (2734 octets)fetchmail: Query status=10 (SMTP)
It appears to me that it is finding mail but does not know where to deliver it and is refused a connection to my machine. Also, I cannot figure out how to set up my SMTP for my ISP in Mutt to send mail. Can someone point me to a simple tutuorial on how to do these things. I really only want to do what you would with Thunderbird, but from the command line.
I am using openSUSE 10.3.When I install software from tarball then to record time required I send output of date to beg.txt(when installation begins) and end.txt (when installation finishes).How can I append output of date to a file so I don't need two files?
I am trying to learn how to pass more than a one-command startup for gnome-terminal.
I will give an example of what I'm trying to do here:
Code: #! /bin/bash # #TODO write this for gnome and xterm USAGE=" ${0##*/} [-x] [-g] code....
However, running with the -g option to invoke gnome-terminal, I get a "There was an error creating the child process for this terminal" error.
This same error occurs if the gnome-terminal line is changed to
Code: gnome-terminal -e mcTerm
Is there any way to pass more than one command on to gnome-terminal? I have tried various single and double quoting senarios and in a final attempt, I abstracted to an exported function all to no avail. Perhaps even though gnome-term is better at many things than xterm, xterm trumps it in this instance.
I am writing an expect script and I want to send the command for the print-screen function. So, what is the command? Alternatively, is there some terminal application which may be well suited to take screen-shots via commands from the terminal or automation scripts?
I have a minecraft server running as a daemon. When you run it normally (not as a daemon), you can type commands into the console. How can you get to the console so I can send it commands while it's running as a daemon?
We all know how to kill multi process but if we want to send different signals to different process like to stop,-9,to hungup simultaneously at the same time then how we will do it,is there any particular command to do it.
hope you will know the net send command of windows.in the same way we are working on linux red hat 5.0 we want to know the equivalent command of net send for linux if any body know then please tell us? we are here only when we not found on google so please do not give the suggestion of searching on google.
The write command just isn't working for me at all. Am I right in thinking it can even do this function? I am using: Code: write paul@paul-laptop pts/0 It keeps telling me write: paul is not logged in on pts/0
i am working on a neat little bash script, and i want the output to be mailed to my email account. So far i have tried installing sendmail then running: mail -s Test myemail@gmail.com But that hasn't worked; and i did check my spam folder. Am i missing something or is there a better technique all together?
I'm currently writing a C++ application to manage some screen functions in Debian(server).
However this issue have bothered me for 2 days now...
What I want to do is to send a command to an attached screen which is running.
Used the following command: Code: screen -S screenwindow So I send a command with the -X parameter, which works just fine... Code: screen -S screenwindow -X stuff yes The command I want to send is "yes" and it does appear in my screen window when I attach it.
But the problem is that I need it to submit it... well I need to press "enter" and I've been looking everywhere on how to do that.
Because right now it hangs on a line like this: Code: Something here, do you want bla bla: yes Obviously I could just press enter myself, but the problem is that it's running as a deamon and but it is supposed to do this all by itself .
I'm looking for an easy way to send basic emails for the command line. I have tried configuring sendmail and mailx, but I have yet been able to receive a test email at my remote address. I have read through a fair amount of "how to" on this but I am a little confused and obviously not doing something right. My sendmail.mc file is as follows