View entire process string

2010-05-06 0 min read Solaris
\"Solaris
Image via Wikipedia

$ /usr/ucb/ps -auxgww Depending on your installation, when you run ps you will only get the first 40 or so characters displayed. In order to view the entire string, use /usr/ucb/ps on <a class="zem_slink freebase/en/solaris_operating_system" title="Solaris (operating system)" rel="homepage" href="http://www.sun.com/solaris/">Solaris.

<a class="zem_slink freebase/en/uniform_resource_locator" title="Uniform Resource Locator" rel="wikipedia" href="http://en.wikipedia.org/wiki/Uniform_Resource_Locator">URL: <a href="http://feedproxy.google.com/~r/Command-line-fu/~3/3y5LUukdRu8/view-entire-process-string">http://feedproxy.google.com/~r/Command-line-fu/~3/3y5LUukdRu8/view-entire-process-string<h6 class="zemanta-related-title">Related articles by Zemanta <ul class="zemanta-article-ul"> <li class="zemanta-article-ul-li"><a href="http://domainmacher.com/snurl-com-a-secure-and-simple-url-shortener/?utm_source=rss&utm_medium=rss&utm_campaign=snurl-com-a-secure-and-simple-url-shortener">SnURL.com – A Secure And Simple URL Shortener (domainmacher.com) <div class="zemanta-pixie"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/5575dd33-40cb-43f4-9de1-9a17f6372eef/"><img class="zemanta-pixie-img" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/reblog_b44.png" alt="Reblog this post [with Zemanta]" /><span class="zem-script more-related more-info pretty-attribution paragraph-reblog">

Continue reading

Craeating a sequence in OpenOffice.org calc.

2010-05-06 1 min read Linux

Creating a numberd list in the calc with alphabets can be really tiresome sometimes. I found a simple solution to this. Create the numbered list in vim and then paste it into Openoffice.org calc. Here&#8217;s how I do it:

Open vim

type the first in sequence (ex Amit_aga_001)

Follow the below sequence to create a macro:

Esc

[Atl]+q+(any alphabet say &#8217;a&#8217;)  — this will start recording the macro

yy  – yank the current line

Continue reading

Solved -- Errors with afraid-dyndns in Goddard (Fedora 13)

2010-05-06 2 min read Fedora Learning Linux

Since I updated to the <a class="zem_slink freebase/en/fedora" title="Fedora" rel="homepage" href="http://fedoraproject.org/">Fedora 13, I was getting error from the <a class="zem_slink freebase/en/dynamic_dns" title="Dynamic DNS" rel="wikipedia" href="http://en.wikipedia.org/wiki/Dynamic_DNS">Dynamic DNS client for afraid. I was not getting enough time to fix this, so finally I decided to fix this in the night itself 🙂

Problem:
On running

afraid-dyndns

I was getting the error:

Entity: line 100: <a class="zem_slink freebase/en/parsing" title="Parsing" rel="wikipedia" href="http://en.wikipedia.org/wiki/Parsing">parser error : Opening and ending tag mismatch: br line 99 and div

Continue reading

xterm – select font name and size from command line and set it as default

2010-05-05 2 min read Fedora Linux

I have been very busy last week and specially yesterday with 20 hours of continueous work, but managed to get this working :).

When you right click on Xterm with Ctrl pressed, there pops up a menu for selecting the size of the font. I have always wondered how to set this as default font and/or use this from the command line. So I searched my old homedir and looked for few of the docs that I had to get the information. Here is what I found.

Continue reading

Find out why a program can't seem to access to a file

2010-05-05 2 min read Fedora Linux

$ strace php tias.php -e open,access 2>&1 | <a class="zem_slink freebase/en/grep" href="http://en.wikipedia.org/wiki/Grep" title="Grep" rel="wikipedia">grep foo.txt Sometimes a program refuses to read a file and you&#8217;re not sure why. You may have display_errors turned off for <a class="zem_slink freebase/en/php" href="http://www.php.net/" title="PHP" rel="homepage">PHP or something. In this example, fopen(&#8217;/var/www/test/foo.txt&#8217;) was called but doesn&#8217;t have read access to foo.txt.

Strace can tell you what went wrong. E.g., if php doesn&#8217;t have read access to the file, strace will say &#8221;EACCESS (Permission denied)&#8221;. Or, if the <a class="zem_slink freebase/guid/9202a8c04000641f8000000000220ffa" href="http://en.wikipedia.org/wiki/Path_%28computing%29" title="Path (computing)" rel="wikipedia">file path you gave doesn&#8217;t exist, strace will say &#8221;ENOENT (No such file or directory)&#8221;, etc.

Continue reading

Linux Contractor Fired for Using Firefox/Linux

2010-05-03 0 min read Linux
\"Gnome
Image via Wikipedia

This is a complicated story but one that must be told. I&#8217;m not sure there is anything that can be done about it except rage at the moon…

But it needs to be told none the less.

Did I mention it gets complicated? It does, but it does so for a reason. Let&#8217;s introduce the starting lineup.

Continue reading

Download youtube video directly from the command line with youtube-dl

2010-05-03 2 min read Fedora Uncategorized

If you keep searching for applications to <a class="zem_slink freebase/en/uploading_and_downloading" title="Uploading and downloading" rel="wikipedia" href="http://en.wikipedia.org/wiki/Uploading_and_downloading">download the <a class="zem_slink freebase/en/youtube" title="YouTube" rel="homepage" href="http://www.youtube.com/">youtube videos or you keep searching for the firefox addons to download the embedded the video, then this is for you. Ofcouse that is the case, only if you do not want to copy it after you have watched it in the <a class="zem_slink freebase/en/web_browser" title="Web browser" rel="wikipedia" href="http://en.wikipedia.org/wiki/Web_browser">browser :). If you have already watched it then you can copy it from the <a class="zem_slink freebase/en/mozilla_firefox" title="Firefox" rel="homepage" href="http://www.mozilla.com/en-US/firefox/">Firefox cache. I will post on that later for now lets see youtube-dl.

Continue reading
Older posts Newer posts