<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Buildins on ohneKontur – der Blog</title>
		<link>https://www.ohnekontur.de/tags/buildins/</link>
		<description>Recent content in Buildins on ohneKontur – der Blog</description>
		<generator>Hugo</generator>
		<language>de-DE</language>
		
		
		
		
			<lastBuildDate>Sat, 05 Jan 2013 09:29:19 +0000</lastBuildDate>
		
			<atom:link href="https://www.ohnekontur.de/tags/buildins/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>How to get a process list if you can’t fork any processes?</title>
				<link>https://www.ohnekontur.de/2013/01/05/how-to-get-a-process-list-if-you-cant-fork-any-processes/</link>
				<pubDate>Sat, 05 Jan 2013 09:29:19 +0000</pubDate>
				<guid>https://www.ohnekontur.de/2013/01/05/how-to-get-a-process-list-if-you-cant-fork-any-processes/</guid>
				<description>&lt;p&gt;Recently I got the question what to do if one got a bash session but can’t fork processes on a Linux system.&lt;br&gt;&#xA;So here is an attempt to get a processlist just by using bash buildins:&lt;/p&gt;&#xA;&lt;pre lang=&#34;bash&#34;&gt;OLDPWD=$PWD&#xA;cd /proc&#xA;for x in [0-9]*&#xA;do&#xA;read cmd &amp;lt; /proc/${x}/comm&#xA;read cmdl &amp;lt; /proc/${x}/cmdline&#xA;printf &#34;%8s - %15s - %s&#34; $x $cmd $cmdl&#xA;echo&#xA;done&#xA;cd $OLDPWD&#xA;&lt;/pre&gt;</description>
			</item>
	</channel>
</rss>
