w command from field
- date: August 25, 2013
i have a simple question about w command output .
USER TTY FROM [email protected]
user1 pts/0 x.x.x.x 08:34 25.00s
root pts/1 x.x.x.x 08:58 0.00s
user2 pts/3 x-y-z-x.sta 08:58 0.00s
what does x-y-z-x.sta mean in from field ???
why th ip address of user2 is like that ??? x-y-z-x.sta instead of x.x.x.x ??????
thx in advance
w command : meaning of “:0” and “:0:0” in FROM field [closed]
- date: November 6, 2013
What do ":0" and ":0:0" mean in the FROM field ? I'm curious.
USER TTY FROM [email protected]
IDLE JCPU PCPU WHAT
oddjob tty7 :0 18:18 10:03m 3:36 0.07s gdm-session-worker [pam/gdm3]
oddjob tty1 21:45 18:17 47.25s 0.00s xinit /etc/X11/xinit/xinitrc -- /etc/X11/xinit/xserverrc :1 -auth /tmp/serverauth.g2M3EzPqao
oddjob pts/0 :0 20:00 1.00s 0.45s 0.00s script
oddjob pts/1 :0.0 21:05 58:46 0.04s 0.04s /bin/bash
[SOLVED] Running batch file does not produce same results as running command from Terminal
location: linuxquestions.com - date: December 28, 2011
I am using Ubuntu Server 4.4.5 with lightweight GNOME installed. Also using MySQL 5.1.56 as well.
I want to be use the MySQL command line tool to run some queries in a .sql file and then output the results to a text file.
When I run my command from Terminal it works as expected, but when I run the same thing from a batch file it doesn't. The output text file is created, but nothing is written to it.
My batch file is as follows:
mysql -uUSER -pPASSWORD db_name < /path/to/file.sql > /path/to/output.txt
When I run the command from Terminal it works fine and the output file is created and populated with data.
When I run the batch file it creates the output file but it isn't populated with the results from my SQL statement... What am I doing wrong??
Thanks for the help!
Running "script" command from .bashrc/.cshrc
location: linuxquestions.com - date: March 29, 2012
I am trying to use the "script" command to log all of the commands that the root user executes. I tried setting it up in the .bashrc file "script root-commands" where root-commands is the file that script writes to. The problem is that it starts an endless loop of the script command. Does anyone have a syntax that will start the script with only one instance. I am looking to use this so that every window opened will have it's own script file. The naming convention would be root-commands-$WINDOWID
[SOLVED] how to delete a specific command from terminal history ?
location: linuxquestions.com - date: August 4, 2011
i accidently typed my root password before typing 'su',
so, now anyone can see my commands history and know password....what should i do to delete it from history.
I definitely don't want to delete complete history as it contains some very important commands.
Bash history delete command from bash itself
location: linuxquestions.com - date: March 21, 2009
I use bash history extensively and there are times when I find that a command is there in bash history when it shouldn't be. Rather than going to .bash_history and delete the line corresponding to the command, is there a way, to delete that command from bash itself. For example, by doing Ctrl-P repeatedly, I move to that command, and then typing Ctrl-u deletes it. But then this remain only for the current session and the change is not permanent, that is, the command hasn't been deleted from the file actually, but only from the history loaded by bash in the memory. I hope I've made myself clear.
I'll be really grateful if someone could answer this question.
Disable telnet command from Linux client end !
- date: July 20, 2011
Dear Friends ,
From Linux client end I can easily telnet to a remote Linux server easily , Like :
~]# telnet 192.168.1.14
Connected to 192.168.1.14 (192.168.1.14).
Escape character is '^]'.
catalog.aibl.com (Linux release 2.6.18-8.el5 #1 SMP Tue Jun 5 23:25:19 EDT 2007) (1)
But I want to disable the "telnet" command from the client end , so that I cannot telnet to a remote linux server from the Linux client end .
Waiting for kind reply ... ..
[SOLVED] how to run shell script command from php web page
location: linuxquestions.com - date: September 2, 2013
hey i want to fire a script from a html page with the help of php.the output should be displayed on the terminal.not on html page.Please any one help me i am new here
Date set command from text file / Clock Drift
- date: March 14, 2010
It's been a while since I've used my linux systems so I'm wondering if someone could help me with a simple script, I'll tell you the current scenario.
I have a mobile Debian Linux system we'll call that 'CLIENT' which doesn't have a hardware clock so the time tends to drift overtime substantially and any NTP clients are out of the question due to the aged micro computer.
On my 'CLIENT' I have created a primative Date/Time retrieving Dumping script ;
scp -i /root/scpkey/id_rsa [email protected]
On the Ubuntu SERVER, it's set every few minutes to dump the current time to this text file '/tmp/dateget.txt' for the CLIENT to collect via cron.
'date > /tmp/dateget.txt'
Now it all works but I am stuck how to automatically copy and paste the text file with the date/time inside it to the date -s
Can't run Ruby command from rc.local
location: ubuntuforums.com - date: September 19, 2011
Forgive an Ubuntu, but we can't seem to find a solution for this.
I need to run a Ruby script on boot, so we are trying to add the following commands to rc.local:
ruby script/delayed_job start
It works fine when I run those two commands from a shell, but not from rc.local. Everything else in rc.local works.
The script has to run out of the Snorby directory due to some relative paths in it, so I have to use the cd command first, but I'm not sure if this actually does anything here? Here is the output when I run it manually:
$sudo ruby script/delayed_job start
Jammit Warning: Asset compression disabled -- Java unavailable.
DataObjects::URI.new with arguments is deprecated, use a Hash of URI components (/var/www/Snorby/snorby_cas_authenticatable.git/ruby/1.9.1/gems/dm-do-adapter-1.1.0/lib/dm-do-adapter/adapter.rb:231:in `new')
delayed_job: process with pid 1662 started.
If I redirect the output of the command with >> snorby.log for
Page: 1 2 3 4 5 6 7 8 9 10