« first day (1096 days earlier)      last day (3851 days later) » 

slm
5:01 PM
 
those are tutorials?
 
slm
videos
yup
 
ill keep it bookmarked
 
slm
vim is a bit of an acquired taste but don't dismiss it simply on first apperances
I use it everyday as my IDE
 
i could care less about appearance
just knowing the commands
 
slm
5:03 PM
there are extensive plugins that make it more powerful than any IDE, but it's a bit like becoming a wood worker, you have to hone your craft
 
slm
:help in vim is where you can find more info
you search it with /blah
you can also do :help <blah> to look up stuff, also I highly recommend gvim if you're starting out, it will teach you how to use vim with a GUI
 
I suspect you'll find most everyone here uses either vim or emacs as their text editor, almost exclusively.
 
ill pass on GUI, i dont think that wil help me at all
 
slm
@Chrislast - it will in the sense that all the key combos are displayed in the pull down menus so you can begin to build the mental palace of associating a known command in the menus with the key combo
 
5:07 PM
oh i didnt know it was like
that
 
slm
pull down Edit -> Select All === ggVG
for example
 
is ggVG a command in VI
 
@derobert be nice... It only takes ~7
 
slm
vim
 
vim has diff commands... -.-
 
5:09 PM
@terdon He's a beginner! He won't have the years of stretching required to pull it off with 7.
 
slm
it has a super set of vi commands
 
Anyway, @Chrislast you're quite right, vim is just weird. You actually need to enter a different mode just to be able to edit a file. What's the point of that in a file editor?
Just use emacs like normal people
 
haha
 
One has to be stubborn with vim in the beginning. But when you get the flow, most people (I guess) don't look back. View a couple of videos for inspiration ;)
 
In case you haven't noticed, this is one of the BIG WARS on *nix :)
 
5:11 PM
See, now you've found the channel's emacs user!
 
slm
In vi I'd use %y a
 
All competent/reasonable/intelligent/pleasant/ethical people use emacs
some weirdos use vim :)
 
slm
% is everything, y is yank, a is slot it get's saved into
 
yes, i believe i learned yank
yy
 
(Ctrl+Y) on emacs == much simpler
 
slm
5:12 PM
yes yy yanks the current line
 
you can combine y with other motions too, to yank different things
 
slm
notice i'm ignoring the emacs lovers/vim haters 8-)
vim users hold them selves to a higher standard 8-)
 
Joking aside, once you start getting into either one of vim or emacs and configure it to suit you, you'll never want to switch. Ever.
@slm prrrrbbbbbtttttthhh
 
slm
depends, i used to work at Kodak and used xemacs to do hardware design
 
i think the people who made linux should have come together and decided to not make things inconsistent
 
slm
5:13 PM
we wrote VHDL in xemacs
the plugins were superior to anything available in vim
 
Well, the people (person) who started GNU actually wrote emacs
It's the vim people who break consistency ;)
 
haha
 
slm
there is no single person, hence why there is so much choice
 
Seriously though, this has nothing to do with Linux. They are independent programs, why should they be consistent?
 
122
Q: vim vs. emacs... and no, this is not a flame war

John BerrymanHow would you compare these editors? What are the pros and cons of each? [note] This is not meant to be answered by those who "hate one and love another" or those who haven't used both.

 
5:15 PM
Would you expect notepad++ to be consistent with sublime?
 
slm
choice isn't bad, you just have to work out your own path through it which lots of ppl don't like/want to do. Hence Apples success, ppl are sheep and want to be told what to like and how to work.
 
im talking about the basic commands in linux not the editors
 
slm
so am i
 
@Chrislast Which basic commands are you finding inconsistent?
 
slm
there are a multitudes of Unixes
 
5:16 PM
@Chrislast Those are extremely consistent
 
slm
GNU tools can straddle across most of them
 
@derobert that diagram made me laugh out loud :)
 
@terdon Yeah, you'll have to thank @MichaelMrozek for that one
 
i can point a command out but there are some Options corresponding to a command and an option similar or exactly like that option corresponds to another command but the option is different
 
slm
@derobert - that's mike's apt cow Q
 
5:18 PM
i cant*
 
slm
when learning unix there are basic skills that a noob should focus on and not try to learn everything
man pages have info
 
@Chrislast well, yes. Are shortcuts the same accross all windows programs? Would you expect them to be?
 
slm
you can search them using man -k <blah>
 
idk, the learning curve would be less of a curve
 
slm
<blah> is a keyword
 
5:19 PM
@Chrislast Yeah, there are some options where are inconsistent. Much of that is due to Unix's long history, and different people writing different commands...
E.g., -v often means verbose, but not always!
 
A lot of options are (almost) universal, for example --verbose and --help and --version
 
grep -v ← surely not verbose
 
As @derobert said though, you have to remember that these are different programs written by different people
 
i know, which is why they should have banded together
 
@derobert i) I said (alsmost) and ii) I never said -v, I used --verbose
 
5:20 PM
like normal people in a project would
 
It is not a project world
compare it to Office and Firefox
they are completely independent
 
@Chrislast These commands were invented over the course of several decades...
 
i see..
 
also, the letters chosen for options tend to be intuitive. It's just that different programs do different things
 
@terdon (that wasn't a response to your comment, it was a continuation of my example, sorry for the confusion)
 
5:22 PM
well.. in the end of the day, linux is free and windows/mac isnt
 
@terdon I'll never forgive chmod for -r
 
There is that. But it is honestly much more ordered than the win world. You'll see once you get to know it
 
"Hey, chmod, do this thing recursively" "What's that? You want me to remove read access for everyone? I'm on it"
3
 
haha
 
10
A: find command in linux

terdonThe reason it doesn't work is because find has no -r option. While it is true that for many programs the -r flag means 'recursive', this is not the case for all and it is not the case for find. The job of find is to search for files and directories, it is not very often that you don't want it to ...

:)
The thing is that different commands do different things. It is intuitive that -r means reverse in sort for example
also that -r means recursive in cp
 
5:24 PM
actually even i would know that
 
(chmod I can't defend, agreed)
 
i also know chmod in octal, owned
 
@terdon Indeed. And it would be easy enough to require the a in front...
 
@MichaelMrozek where did you get that great diagram for the emacs/vim question?
Damn, rep cap already :(
 
@terdon It's fairly common, I don't know where it's originally from
 
5:26 PM
Is great :)
And good to have another reasonable human being here, I've been surrounded by vimmers
 
I think I would not hate vim if I ever bothered to learn it, but I'm plenty fast enough with emacs and much prefer modifier keys to modes
 
@terdon Appears we have 2 v. 2 here, so the channel is in perfect balance.
 
I don't hate it, I just don't get it. Freely admit it's a great editor of course.
@derobert heh nice, do I need to post the classic xkcd one?
 
@terdon I assume everyone has seen it, but as long as we're having comic strip fun time...
 
5:30 PM
 
Somewhere I saw a really good explanation of vim that made me hate it less
 
You know the emacs guys have actually implemented that?
Alt+X butterfly
 
Oh, SO of course:
2870
A: What is your most productive shortcut with Vim?

Jim DennisYour problem with Vim is that you don't grok vi. You mention cutting with yy and complain that you almost never want to cut whole lines. In fact programmers, editing source code, very often want to work on whole lines, ranges of lines and blocks of code. However, yy is only one of many way to...

 
Wow, +2870...
 
and wow, that's a good answer! On SO! Nice and long and detailed. Even longer than @slm's!
 
5:33 PM
SO has plenty of good answers. Like the classic:
4431
A: RegEx match open tags except XHTML self-contained tags

bobinceYou can't parse [X]HTML with regex. Because HTML can't be parsed by regex. Regex is not a tool that can be used to correctly parse HTML. As I have answered in HTML-and-regex questions here so many times before, the use of regex will not allow you to consume HTML. Regular expressions are a tool th...

"TO͇̹̺ͅƝ̴ȳ̳ TH̘Ë͖́̉ ͠P̯͍̭O̚​N̐Y̡ H̸̡̪̯ͨ͊̽̅̾̎Ȩ̬̩̾͛ͪ̈́̀́͘ ̶̧̨̱̹̭̯ͧ̾ͬC̷̙̲̝͖ͭ̏ͥͮ͟Oͮ͏̮̪̝͍M̲̖͊̒ͪͩͬ̚̚͜Ȇ̴̟̟͙̞ͩ͌͝S̨̥̫͎̭ͯ̿̔̀ͅ"
 
Yeah, that one I know. Great answer but not very informative :)
Though the unicode knowledge is impressive I'll grant you
 
LOL, yeah. I'd argue it is pretty informative, it just wishes to inform you of one point only—use a #!(#*) HTML parser.
 
> Even Jon Skeet cannot parse HTML using regular expressions.
lol
The SO skeet cult is funny
Any of you guys have any experience using Perl for CGI scripts?
 
@terdon Yeah.
 
I have a script that is getting data from a database
 
slm
5:38 PM
Yeah windows is def. better:
UNIX: umount /mnt
WIND: net use \\server\share /delete
 
some of my queries can take a long time, so I want to show a placeholder
 
slm
@terdon I just have a lot to say....
 
however, despite calling the placeholder function before the mysql one, the placeholder is not displayed immediately
 
@terdon flush stdout
 
@slm that was not a critique, more like a compliment. SO answers tend to be too short
@derobert tried print STDOUT
and $|=1
no difference
both of those should flush right?
 
slm
 
> how did you write bind9=<something>
 
$|=1 ought to... I don't think print STDOUT will
 
I believe with the keyboard, typing letters, no??
 
(at least, $|=1 will unless you've selected a different filehandle)
 
no, I'm printing straight to STDOUT
and yes, I remember solving things by explicitly using print STDOUT instead of print alone
 
5:41 PM
selecting a filehandle—the one $| affects—is done with select....
 
hang on, I'll get a minimal code example
 
slm
@terdon I do, what's up?
 
but if you've got a reasonably modern perl, you can use STDOUT->autoflush(1). Even if you haven't done a use IO::Handle.
 
I have a script that is getting data from a database, some of my queries can take a long time, so I want to show a placeholder. However, despite calling the placeholder function before the mysql one, the placeholder is not displayed immediately
it works fine if I run a minimal example on the command line but not if I'm displaying to the browser
 
slm
@derobert - yeah that Q was getting me annoyed about Perl not being ubiq. BTW. Was a total waste of time discussion, then ppl had to dig up ancient ass versions of boxes with Bash just to try and show me up....
 
5:44 PM
Can't locate object method "autoflush" via package "IO::Handle" at /var/www_8080/PoGo/cgi-bin/pogo.pl line 89.
I guess the perl version ain't modern enough
@slm sorry about that, I helped
 
@terdon that is a weird error to get
 
I thought UNIX without Perl was impossible and Gilles set me straight so I mentioned AIX
 
slm
@terdon - yeah i get a little annoyed when ppl want to mince answers to death in the comments
 
Maybe it means you need a use IO::Handle
 
OK, I'll try that
@slm it was not meant to be critical, I was thinking more along the lines that as far as I know, only embedded and AIX might not have Perl so, not a problem
 
5:47 PM
This way, we can be sure that its actually in autoflush mode. You could also do an explicit STDOUT->flush if you don't want to turn on autoflush
 
slm
@terdon - yeah i didn't think you were, you were just qualifying it, but dave and someone else wouldn't let it go
 
@derobert with use IO::handle I get no error but no change in behavior either
 
I wonder, do you have some sort of other buffering enabled? Maybe in Apache?
e.g., maybe you've got Apache buffering to do mod_gzip?
 
slm
are you using mod_deflate in apache?
 
sorry, yeah, @slm has the right name for the module
 
5:50 PM
Hang on, I'll check
 
slm
you should be able to just disable it in the httpd.conf and restart
comment it out
 
nope
http.conf :
 
slm
do you see anything in apache's error log?
 
<Directory "/var/www_8080/PoGo/cgi-bin/">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AddHandler cgi-script .cgi .pl .php
Order allow,deny
Allow from all
</Directory>
 
@terdon it could be elsewhere in the apache config
 
5:51 PM
@slm nope, it works find just takes a while to show the placeholder instead of going directly
@derobert no mod_ in apache.conf either
grep mod_ /etc/apache2/apache2.conf
 
There isn't in mine either, it's in /etc/apache2/mods-enabled/
 
Ah, hang on then
 
I'd try grep -r DEFLATE /etc/apache2
 
/etc/apache2/mods-available/deflate.conf:          AddOutputFilterByType DEFLATE text/html text/plain text/xml
/etc/apache2/mods-available/deflate.conf:          AddOutputFilterByType DEFLATE text/css
/etc/apache2/mods-available/deflate.conf:          AddOutputFilterByType DEFLATE application/x-javascript application/javascript application/ecmascript
/etc/apache2/mods-available/deflate.conf:          AddOutputFilterByType DEFLATE application/rss+xml
/etc/apache2/mods-enabled/deflate.conf:          AddOutputFilterByType DEFLATE text/html text/plain text/xml
 
Or just fire up Wireshark and see if the response is compressed :-P
 
5:55 PM
Working on a remote VM I have to tunnel to
 
So, it looks like you're using DEFLATE
 
yup
I should remove the link from mods-enabled right?
 
a2dismod
or remove the links, but a2dismod is easier
 
well, I removed the link
and it works! Thanks @slm @derobert
what exactly does that do anyway?
 
It compresses HTTP responses, saving bandwidth and speeding things up
 
5:57 PM
shit, that's a good idea...
Some of the queries can be quite long.
I mean return large amounts of data. I guess there is no way of activating it selectively?
 
you can just set no-gzip for that CGI
 
Yeah, I'd like to perhaps compress the actual data returned, just not the placeholder
I guess I'd have to do that in the CGI script itself
 
Or alternatively, make your progress message longer, to guarantee a buffer flush
 
Well, the progress message is a new page that will be refreshed to show the output
 
You could also generate your progress message in JavaScript, but that's probably more work
 
5:59 PM
it is in javascript, I just need to load the page as soon as the submit is clicked
never mind, it is more important to show the user that something is happening, I can live with this
 
@terdon Then you could just make it a different URL, and then apache could match it and disable compression only for the status page
 
Ah, that's interesting
 
httpd.apache.org/docs/2.2/mod/mod_deflate.html is the documentation on mod_deflate, btw
 
it is a different URL already
Cool, thanks I'll go read that
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
What should I use? /* */? // ?
/* works
 
6:16 PM
I think // works too
 
in php yes, I just wasn't sure about mcrypt.ini
 
that's a php.ini fragment, so whatever works in php.ini should be fine there
 
Anyone know what an ELF interpreter is? I came across this on man page of /proc
 
ELF == Executable and Linkable Format
I guess it is the part of the kernel that deals with running executables
In computing, the Executable and Linkable Format (ELF, formerly called Extensible Linking Format) is a common standard file format for executables, object code, shared libraries, and core dumps. First published in the System V Application Binary Interface specification, and later in the Tool Interface Standard, it was quickly accepted among different vendors of Unix systems. In 1999 it was chosen as the standard binary file format for Unix and Unix-like systems on x86 by the 86open project. ELF is flexible and extensible by design, and it is not bound to any particular processor or arc...
 
ok I guess /proc/[number]/auxv isn't really useful in finding out about a pid
That auxv seems to be compiled code
 
6:28 PM
What are you actually trying to do?
 
@terdon my serial port shows its busy when I try to start gammu-smsd. So I ran fuser on it: fuser -m -u /dev/ttyS0. It returned this: /dev/ttyS0: 21624(guarddoggps). So I go to /proc/21624/status
And this is the output I get from status:
Name:	dropbox
State:	S (sleeping)
Tgid:	21624
Pid:	21624
PPid:	1
TracerPid:	0
Uid:	1001	1001	1001	1001
Gid:	1001	1001	1001	1001
FDSize:	64
Groups:	5 27 1001 5004
VmPeak:	  873732 kB
VmSize:	  806040 kB
VmLck:	       0 kB
VmHWM:	  207668 kB
VmRSS:	  132272 kB
VmData:	  547820 kB
VmStk:	     160 kB
VmExe:	    3524 kB
VmLib:	   29660 kB
VmPTE:	    1244 kB
Threads:	21
SigQ:	0/16382
SigPnd:	0000000000000000
ShdPnd:	0000000000000000
SigBlk:	0000000000000000
SigIgn:	0000000001001000
SigCgt:	00000001800004c8
But I would like to know exactly what that process is, and I am on the man page reading about its subdirectories
 
Isn't it dropbox?
 
it looks like it, but if it was really dropbox, why would it be using that serial port?
I have a modem attached to that serial port
 
no idea
is pgrep 21624 dropbox?
Perhaps dropbox thinks it is connecting via modem?
Don't really know though. Let's call in the heavyweights @slm @derobert any ideas?
 
"pgrep 21624" doesn't return anything
 
6:35 PM
weird, that seems to be the PID.
 
yet fuser says it's using it
 
Sorry, really don't know.
 
$ fuser -m -u /dev/ttyS0
/dev/ttyS0: 21624(guarddoggps)
 
The status is sleeping so maybe it is hung. Does this persist after a reboot? Or if you manually kill dropbox?
 
@JohnMerlino: Kernel loads ELF interpreter -> ELF interpreter loads libarires -> … greek0.net/elf.html , nixos.org/patchelf.html , lehman.cuny.edu/cgi-bin/man-cgi?elfdump+1
 
6:37 PM
@terdon you think I should run "kill -9 21624"?
 
I think I don't know enough to say :)
 
slm
sorry catching up
went away to work on my day job stuff
 
Ah, here's a real sysadmin
 
slm
are you just trying to find out what's using /dev/ttyS0?
 
(I just sang that to the tune of the Beatle's nowehere man :)
 
slm
6:38 PM
ah
ha
wife's a huge beatles fan
 
@slm yeah I am trying to use /dev/ttyS0 with gammu-smsd but gammus-smsd doesn't start because it says that the serial port is busy
 
I remember a Debian guide to clean unused dependencies... but the google fo is failing to find it again... maybe I was looking for other thing, anyone knows about it?
 
slm
I'd try using lsof and see what has /dev/ttyS0 in use
 
A PID can be "invisible" – typically subthreads. Won't even come up in ls -la /proc , but you can cd into it as in cd /proc/SOME_invisible_pid
 
@slm lsof is more reliable than fuser?
 
slm
6:40 PM
i would say so
you need to be root to run it to see process by other userids
 
Ugh. Blender Rendering is really slowing down my system …
Need a farm
 
slm
@Sukminder - get another system to run that on remotely
 
I ran "lsof /dev/ttyS0" and it didn't give me anything
This is the actual error log of gammu:
0
Q: Gammu: "Device or resource busy"

JohnMerlinoI am successfully able to send myself an SMS message via minicom on the serial port /dev/ttyS0: at+CMGS=954xxxxxxx > Hello World Again +CMGS: 8 However, I have the following configuration for gammu-smsd: [gammu] port = /dev/ttyS0 connection = at115200 [smsd] service = pgsql logfile = syslog ...

 
slm
do you have some sort of gps thing on this box?
 
@slm yes I have a gsm modem
 
slm
6:43 PM
guarddog appears to have the device busy from the previous fuser output
you own that process?
 
yeah I am sudo user
If killing that pid I mentioned above, kills dropbox and allows me to run gammu-smsd, then I will do it
 
@slm: Yes. I really need to get that set up. AFAIK it is even a builtin/plugin for it now …
 
slm
do a sudo lsof | grep ttyS0
 
@slm that doesn't give any output
 
slm
@Sukminder - yes there is a builtin now, much easier than in the past
@JohnMerlino - what about sudo lsof | grep 21624
 
6:46 PM
@slm that gave a ton of output
 
slm
is it showing the process name by chance to the left?
guarddog...
 
yes I don't want to copy all of it into here because it's huge, but this is what I get for the programs running: zsh, lsof, grep, lsof, and 150+ dropbox
it seems like over 100 dropbox instances are part of that output
The lsof are running from root (since I used sudo with that command) and everything else is run with guarddog user
 
slm
k, you can just look for that pid, lsof -p 21624
should return the single process with that pid, and all the files it has opened
 
slm
curious that ttyS0 doesn't show up
 
6:52 PM
When I run "sudo lsof -p 21624", i get all dropbox on left side
 
slm
oh ok, so guarddoggps is a your username
 
yes
when I run sudo lsof -p 21624, this is what I see: pastebin.com/mwpFtZRb
 
slm
I'd try stopping dropbox and see if you can access it
try this too: sudo lsof /dev/ttyS*
If you want to see what the working directory is of a process, BTW, it's pwdx <PID>
 
$ sudo lsof /dev/ttyS*
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
screen 23520 root 6u CHR 4,64 0t0 1421 /dev/ttyS0
That's interesting, it thinks that the screen program is using ttyS0? I remember trying to access that port with screen before, but now I use minicom
 
anyone want to help me with a problem, i took a screenshot of it
 
7:06 PM
there is a question about what are package lists of a package manager?
 
@Chrislast try me
@Braiam no idea
 
here is the question: postimg.org/image/npexaw0ib
by the way that is a secure shell client if you're wondering
 
@Chrislast you gotta be kidding me...
 
@Chrislast cp ../cambridge/security/parking parking2
 
i need to name it parking2 dude
how am i kidding you @Braiam
 
7:09 PM
cp ../cambridge/security/parking parking2
 
ok ill try that
 
lol why is not the same ./filename than just filename?
 
fuck
so.. i sent an email regarding this to my professor for no reason
now he wil think im an idiot
 
no, still, the test is flawed
 
i think he wanted the shortest possible answer
i think it made mention of that
 
7:10 PM
won't get much shorter than that
 
yeah i know, that was the correct answer terdon
 
The ./ is always implied
 
yeah
uh.. what is a relative-to-home pathname again
oh is it ~/blablabla
yeah it is nvm
 
did I miss something askubuntu.com/q/355947/169736 ?
 
7:42 PM
@Braiam looks good. You might want to link to the official reference:
 
@terdon actually, I did from my head everything :P
@terdon oh boy, 404 there
 
where? the debian page? I just clicked on the link I posted and it worked fine
 
you missed the l at the end of html
 
shit, you're right, I just clicked and saw that a debian page loaded, I missed the fact that it was a 404 :)
 
8:36 PM
@terdon ummm... at risk of having not read the chat log fully... man fuser, look up what -m means.
 
:) slm told him to go for lsof
all I knew is that serial ports are well outside my comfort zone so I called in the pros.
 
all I know about serial ports is that that was the port I used to connect the mouse... :S
 
fuser -m tells you anything using that mount
so of course a lot of things were using /dev
@Chrislast That's not the shortest possible—you could use * to get much shorter.
cp ../c*/s*/p* parking2 is much shorter
@Chrislast I'm going to have to agree that your exam appears broken. Or at least very lazily implemented.
 
slm
@derobert - I didn't look back either to see how he ran fuser
I came into the conv. mid stream
been a bit busy at work so was 1/2 reading today
 
but anyway, it looks like lsof gave the answer...
so I'm curious why the AU question is still open
 
slm
8:51 PM
didn't look at that either
 
2 hours ago, by JohnMerlino
$ sudo lsof /dev/ttyS*
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
screen 23520 root 6u CHR 4,64 0t0 1421 /dev/ttyS0
 
slm
yeah I don't know what he was doing with screen
he needs to just kill that to free the port
 
@JohnMerlino considering the lsof output above... should your question on AU still be open?
 
slm
@derobert - answer his lsof Q here
 
@slm Ah, found that one—will answer it
 
8:53 PM
@derobert the question on main is a little different, it's about comparing lsof to fuser and why they give different output
 
slm
@JohnMerlino - the -m switch is the issue as @derobert stated
@JohnMerlino - I hadn't scrolled back enough to see that you used that switch
       -m     name specifies a file on a mounted file system or a block device that is mounted. All processes accessing files on that file system are listed.  If a directory file is specified, it is automatically changed to name/. to use any file system that might be mounted on that directory.
man page of fuser
so it shows you all the processes that are accessing the mount associated with /dev/ttyS0 which is everything
 
ok thanks
 
slm
sorry I should've scrolled up and read it more thoroughly, I would've caught that normally, been a bit busy at work today 8-)
 
@slm so really it's gnu screen that is the real culprit here?
 
slm
thanks @derobert
yeah
just kill it
pkill screen
 
8:56 PM
well, I'd exit your screen session normally instead of killing it, but...
 
slm
the fuser -m is a red herring since the switch is off
or that
picky picky
he tried to connect to the serial port with screen so it's likely not anyway
screen -dr
 
ok I did some more investigation as to why that screen session is even using that serial port, and it looks like someone started the screen session and was running "tail -f" continuously on a log file.
 
slm
I do have a day job too 8-)
 
that screen session was started as root too
 
slm
you can ctrl-c it and then exit the screen to close it
OK, back to work...
 
8:59 PM
screen is able to handle serial ports, sort of like minicom. This would be screen less-known feature #4,234,234, I believe.
(Also, honestly, I'm surprised if your fuser -um output only consisted of one process, not the many as on my system... but I guess most of mine are xterms and so on, so maybe you don't have many of those running)
 
@derobert when I ran fuser as root, a ton of stuff came up
but when I ran it as regular user, only one thing came up
that was another thing too, lsof was running with sudo, and fuser without sudo
 
Yeah. Depending on system config, you may not be able to see which files other users have open.
If you think of, for example, a large multi-user system, where a bunch of people who may not know each other are logged in, there is a privacy issue if you can see each others' open files.
@JohnMerlino so did that fix your Gammu problem? If so, please post an answer to your question on AU.
 
9:48 PM
@derobert I killed that screen session: screen -S 21200.pts-1.porkypig -X quit. Yet it keeps showing up when running "sudo lsof | grep /dev/ttyS0" Should I just run kill -9 23520?
 
if it won't die, you could kill -9 it
just be sure its what you think it is first
(check with ps, for example)
you could also try normal kill (sigterm) first
for some reason, I'm not speaking in messages approaching rasterman length. Must be time to go home!
 
IT WORKED!
the culprit was screen
 

« first day (1096 days earlier)      last day (3851 days later) »