<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
      <title>003.04.81.Assignment. Process Replacement - EmbLogic</title>
      <link>https://www.emblogic.com/forum/categories/003-04-81-assignment-process-replacement/feed.rss</link>
      <pubDate>Thu, 16 Apr 26 22:34:50 +0530</pubDate>
         <description>003.04.81.Assignment. Process Replacement - EmbLogic</description>
   <language>en-CA</language>
   <atom:link href="/forum/discussions/feed.rss" rel="self" type="application/rss+xml" />
		<item>
			<title>8. Replace the current process with the `date`</title>
			<link>https://www.emblogic.com/forum/discussion/1675/8-replace-the-current-process-with-the-date</link>
			<pubDate>Tue, 04 Jun 2024 12:27:07 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1675@/forum/discussions</guid>
			<description><![CDATA[<p style="text-align: justify;"><span style="color: #2f4f4f;"><span style="font-family: Caladea, serif;"><span style="font-size: large;"><b><span style="color: #bf0041;"><span>8. </span></span>Replace the current process with the `date`</b></span></span></span></p><p style="text-align: justify;"><span style="color: #2f4f4f;"><span style="font-family: Caladea, serif;"><span style="font-size: large;">Write a C program to replace the current process with the `date` command using `execlp()`.</span></span></span></p>]]></description>
		</item>
		<item>
			<title>7. Replace the current process with the `ls -l`</title>
			<link>https://www.emblogic.com/forum/discussion/1674/7-replace-the-current-process-with-the-ls-l</link>
			<pubDate>Tue, 04 Jun 2024 12:26:50 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1674@/forum/discussions</guid>
			<description><![CDATA[<p style="text-align: justify;"><span style="color: #134f5c;"><span style="font-family: Caladea, serif;"><span style="font-size: large;"><b><span style="color: #bf0041;"><span>7</span></span><span style="color: #bf0041;"><span>. </span></span>Replace the current process with the `ls -l`</b></span></span></span></p><p style="text-align: justify;"><span style="color: #2f4f4f;"><span style="font-family: Caladea, serif;"><span style="font-size: large;">Write a C program to replace the current process with the `ls -l` command using `execl()`.</span></span></span></p>]]></description>
		</item>
		<item>
			<title>6. Significance of the `NULL` terminator</title>
			<link>https://www.emblogic.com/forum/discussion/1673/6-significance-of-the-null-terminator</link>
			<pubDate>Tue, 04 Jun 2024 12:23:56 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1673@/forum/discussions</guid>
			<description><![CDATA[<p style="text-align: justify;"><span style="color: #134f5c;"><span style="font-family: Caladea, serif;"><span style="font-size: large;"><b><span style="color: #bf0041;"><span>6</span></span><span style="color: #bf0041;"><span>. </span></span>Significance of the `NULL` terminator</b></span></span></span></p><p style="text-align: justify;"><span style="color: #2f4f4f;"><span style="font-family: Caladea, serif;"><span style="font-size: large;">What is the significance of the `NULL` terminator in the argument list passed to `execl()` or `execle()`?</span></span></span></p>]]></description>
		</item>
		<item>
			<title>4. Advantage, `execvp()` have over `execv()`</title>
			<link>https://www.emblogic.com/forum/discussion/1671/4-advantage-execvp-have-over-execv</link>
			<pubDate>Tue, 04 Jun 2024 12:23:15 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1671@/forum/discussions</guid>
			<description><![CDATA[<p style="text-align: justify;"><span style="color: #134f5c;"><span style="font-family: Caladea, serif;"><span style="font-size: large;"><b><span style="color: #bf0041;"><span>4</span></span><span style="color: #bf0041;"><span>. </span></span>Advantage, `execvp()` have over `execv()`</b></span></span></span></p><p style="text-align: justify;"><span style="color: #2f4f4f;"><span style="font-family: Caladea, serif;"><span style="font-size: large;">What advantage does `execvp()` have over `execv()`?</span></span></span></p>]]></description>
		</item>
		<item>
			<title>3. where `execl()` is preferred over `execv()</title>
			<link>https://www.emblogic.com/forum/discussion/1670/3-where-execl-is-preferred-over-execv</link>
			<pubDate>Tue, 04 Jun 2024 12:16:19 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1670@/forum/discussions</guid>
			<description><![CDATA[<p style="text-align: justify;"><span style="color: #134f5c;"><span style="font-family: Caladea, serif;"><span style="font-size: large;"><b><span style="color: #bf0041;"><span>3</span></span><span style="color: #bf0041;"><span>. </span></span>where `execl()` is preferred over `execv()</b></span></span></span></p><p style="text-align: justify;"><span style="color: #2f4f4f;"><span style="font-family: Caladea, serif;"><span style="font-size: large;">Describe the scenario where `execl()` is preferred over `execv()`.</span></span></span></p>]]></description>
		</item>
		<item>
			<title>2. Why use exce() functions</title>
			<link>https://www.emblogic.com/forum/discussion/1669/2-why-use-exce-functions</link>
			<pubDate>Tue, 04 Jun 2024 12:15:59 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1669@/forum/discussions</guid>
			<description><![CDATA[<p style="text-align: justify;"><span style="color: #134f5c;"><span style="font-family: Caladea, serif;"><span style="font-size: large;"><b><span style="color: #bf0041;"><span>2</span></span><span style="color: #bf0041;"><span>. </span></span>Why use ece() functions</b></span></span></span></p><p style="text-align: justify;"><span style="color: #2f4f4f;"><span style="font-family: Caladea, serif;"><span style="font-size: large;">What are the main reasons to use `exec()` functions in a program?</span></span></span></p>]]></description>
		</item>
		<item>
			<title>1. Difference between `fork()` and any `exec()</title>
			<link>https://www.emblogic.com/forum/discussion/1668/1-difference-between-fork-and-any-exec</link>
			<pubDate>Tue, 04 Jun 2024 12:15:39 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1668@/forum/discussions</guid>
			<description><![CDATA[<p style="text-align: justify;"><span style="color: #134f5c;"><span style="font-family: Caladea, serif;"><span style="font-size: large;"><b><span style="color: #bf0041;"><span>1.</span></span> Difference between `fork()` and any `exec()</b></span></span></span></p><p style="text-align: justify;"><span style="color: #2f4f4f;"><span style="font-family: Caladea, serif;"><span style="font-size: large;">Explain the fundamental difference between `fork()` and any `exec()` family function.</span></span></span></p>]]></description>
		</item>
		<item>
			<title>21. fork() and execl() combination</title>
			<link>https://www.emblogic.com/forum/discussion/1688/21-fork-and-execl-combination</link>
			<pubDate>Tue, 04 Jun 2024 13:09:38 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1688@/forum/discussions</guid>
			<description><![CDATA[<p style="text-align: justify;"><span style="color: #134f5c;"><span style="font-family: Caladea, serif;"><span style="font-size: large;"><b><span style="color: #bf0041;"><span>21. </span></span>fork() and execl() combination</b></span></span></span></p><p style="text-align: justify;"><span style="color: #2f4f4f;"><span style="font-family: Caladea, serif;"><span style="font-size: large;">Write a C program using `fork()` to create a child process that executes the `whoami` command using `execl()`. Print the output of the child process in the parent process.</span></span></span></p>]]></description>
		</item>
		<item>
			<title>20. security implications of using `exec()` functions</title>
			<link>https://www.emblogic.com/forum/discussion/1687/20-security-implications-of-using-exec-functions</link>
			<pubDate>Tue, 04 Jun 2024 13:09:11 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1687@/forum/discussions</guid>
			<description><![CDATA[<p style="text-align: justify;"><span style="color: #134f5c;"><span style="font-family: Caladea, serif;"><span style="font-size: large;"><b><span style="color: #bf0041;"><span>20</span></span><span style="color: #bf0041;"><span>. </span></span>security implications of using `exec()` functions</b></span></span></span></p><p style="text-align: justify;"><span style="color: #2f4f4f;"><span style="font-family: Caladea, serif;"><span style="font-size: large;">Discuss the security implications of using `exec()` functions and how to mitigate potential risks.</span></span></span></p>]]></description>
		</item>
		<item>
			<title>19. The use of `execvpe()`</title>
			<link>https://www.emblogic.com/forum/discussion/1686/19-the-use-of-execvpe</link>
			<pubDate>Tue, 04 Jun 2024 12:51:56 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1686@/forum/discussions</guid>
			<description><![CDATA[<p style="text-align: justify;"><span style="color: #134f5c;"><span style="font-family: Caladea, serif;"><span style="font-size: large;"><b><span style="color: #bf0041;"><span>1</span></span><span style="color: #bf0041;"><span>9</span></span><span style="color: #bf0041;"><span>. </span></span>The use of `execvpe()`</b></span></span></span></p><p style="text-align: justify;"><span style="color: #2f4f4f;"><span style="font-family: Caladea, serif;"><span style="font-size: large;">Create a C program to illustrate the use of `execvpe()` with a custom environment variable.</span></span></span></p>]]></description>
		</item>
		<item>
			<title>18. Modify the environment variables</title>
			<link>https://www.emblogic.com/forum/discussion/1685/18-modify-the-environment-variables</link>
			<pubDate>Tue, 04 Jun 2024 12:51:39 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1685@/forum/discussions</guid>
			<description><![CDATA[<p style="text-align: justify;"><span style="color: #134f5c;"><span style="font-family: Caladea, serif;"><span style="font-size: large;"><b><span style="color: #bf0041;"><span>1</span></span><span style="color: #bf0041;"><span>8</span></span><span style="color: #bf0041;"><span>. </span></span>Modify the environment variables</b></span></span></span></p><p style="text-align: justify;"><span style="color: #2f4f4f;"><span style="font-family: Caladea, serif;"><span style="font-size: large;">Explain how to modify the environment variables of a new process created with `execle()`.</span></span></span></p>]]></description>
		</item>
		<item>
			<title>16. Open File using gedit and execlp</title>
			<link>https://www.emblogic.com/forum/discussion/1683/16-open-file-using-gedit-and-execlp</link>
			<pubDate>Tue, 04 Jun 2024 12:49:12 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1683@/forum/discussions</guid>
			<description><![CDATA[<p style="text-align: justify;"><span style="color: #134f5c;"><span style="font-family: Caladea, serif;"><span style="font-size: large;"><b><span style="color: #bf0041;"><span>1</span></span><span style="color: #bf0041;"><span>6</span></span><span style="color: #bf0041;"><span>. </span></span>Open File using gedit and execlp</b></span></span></span></p><p style="text-align: justify;"><span style="color: #2f4f4f;"><span style="font-family: Caladea, serif;"><span style="font-size: large;">Design a program that takes a filename as input and opens it using the `gedit` editor with `execlp()`.</span></span></span></p>]]></description>
		</item>
		<item>
			<title>15. Replace the current process with the `cal`</title>
			<link>https://www.emblogic.com/forum/discussion/1682/15-replace-the-current-process-with-the-cal</link>
			<pubDate>Tue, 04 Jun 2024 12:39:43 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1682@/forum/discussions</guid>
			<description><![CDATA[<p style="text-align: justify;"><span style="color: #134f5c;"><span style="font-family: Caladea, serif;"><span style="font-size: large;"><b><span style="color: #bf0041;"><span>1</span></span><span style="color: #bf0041;"><span>5</span></span><span style="color: #bf0041;"><span>. </span></span>Replace the current process with the `cal`</b></span></span></span></p><p style="text-align: justify;"><span style="color: #2f4f4f;"><span style="font-family: Caladea, serif;"><span style="font-size: large;">Write a C program to replace the current process with the `cal` command for the current year and month using `execl()`.</span></span></span></p>]]></description>
		</item>
		<item>
			<title>14. Command-line arguments using `execv()</title>
			<link>https://www.emblogic.com/forum/discussion/1681/14-command-line-arguments-using-execv</link>
			<pubDate>Tue, 04 Jun 2024 12:39:26 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1681@/forum/discussions</guid>
			<description><![CDATA[<p style="text-align: justify;"><span style="color: #134f5c;"><span style="font-family: Caladea, serif;"><span style="font-size: large;"><b><span style="color: #bf0041;"><span>1</span></span><span style="color: #bf0041;"><span>4</span></span><span style="color: #bf0041;"><span>. </span></span>Command-line arguments using `execv()</b></span></span></span></p><p style="text-align: justify;"><span style="color: #2f4f4f;"><span style="font-family: Caladea, serif;"><span style="font-size: large;">Demonstrate how to pass command-line arguments to a new process using `execv()`.</span></span></span></p>]]></description>
		</item>
		<item>
			<title>13. Errors when using `exec()</title>
			<link>https://www.emblogic.com/forum/discussion/1680/13-errors-when-using-exec</link>
			<pubDate>Tue, 04 Jun 2024 12:39:11 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1680@/forum/discussions</guid>
			<description><![CDATA[<p style="text-align: justify;"><span style="color: #134f5c;"><span style="font-family: Caladea, serif;"><span style="font-size: large;"><b><span style="color: #bf0041;"><span>1</span></span><span style="color: #bf0041;"><span>3</span></span><span style="color: #bf0041;"><span>. </span></span>Errors when using `exec()</b></span></span></span></p><p style="text-align: justify;"><span style="color: #2f4f4f;"><span style="font-family: Caladea, serif;"><span style="font-size: large;">What are the potential errors that can occur when using `exec()` functions, and how can they be handled?</span></span></span></p>]]></description>
		</item>
		<item>
			<title>12. Role of the `PATH`</title>
			<link>https://www.emblogic.com/forum/discussion/1679/12-role-of-the-path</link>
			<pubDate>Tue, 04 Jun 2024 12:35:05 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1679@/forum/discussions</guid>
			<description><![CDATA[<p style="text-align: justify;"><span style="color: #134f5c;"><span style="font-family: Caladea, serif;"><span style="font-size: large;"><b><span style="color: #bf0041;"><span>1</span></span><span style="color: #bf0041;"><span>2</span></span><span style="color: #bf0041;"><span>. </span></span>Role of the `PATH`</b></span></span></span></p><p style="text-align: justify;"><span style="color: #2f4f4f;"><span style="font-family: Caladea, serif;"><span style="font-size: large;">Explain the role of the `PATH` environment variable when using `execlp()` or `execvp()`.</span></span></span></p>]]></description>
		</item>
		<item>
			<title>11. `execvpe()` differ from `execvp()`</title>
			<link>https://www.emblogic.com/forum/discussion/1678/11-execvpe-differ-from-execvp</link>
			<pubDate>Tue, 04 Jun 2024 12:34:49 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1678@/forum/discussions</guid>
			<description><![CDATA[<p style="text-align: justify;"><span style="color: #134f5c;"><span style="font-family: Caladea, serif;"><span style="font-size: large;"><b><span style="color: #bf0041;"><span>1</span></span><span style="color: #bf0041;"><span>1</span></span><span style="color: #bf0041;"><span>. </span></span>`execvpe()` differ from `execvp()`</b></span></span></span></p><p style="text-align: justify;"><span style="color: #2f4f4f;"><span style="font-family: Caladea, serif;"><span style="font-size: large;">How does `execvpe()` differ from `execvp()`? Provide an example.</span></span></span></p>]]></description>
		</item>
		<item>
			<title>10. Execute the `ps -ef` command</title>
			<link>https://www.emblogic.com/forum/discussion/1677/10-execute-the-ps-ef-command</link>
			<pubDate>Tue, 04 Jun 2024 12:34:10 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1677@/forum/discussions</guid>
			<description><![CDATA[<p style="text-align: justify;"><span style="color: #134f5c;"><span style="font-family: Caladea, serif;"><span style="font-size: large;"><b><span style="color: #bf0041;"><span>1</span></span><span style="color: #bf0041;"><span>0</span></span><span style="color: #bf0041;"><span>. </span></span>Execute the `ps -ef` command</b></span></span></span></p><p style="text-align: justify;"><span style="color: #2f4f4f;"><span style="font-family: Caladea, serif;"><span style="font-size: large;">Create a C program to execute the `ps -ef` command, passing environment variables using `execle()`.</span></span></span></p>]]></description>
		</item>
		<item>
			<title>9. A program using using execvp()</title>
			<link>https://www.emblogic.com/forum/discussion/1676/9-a-program-using-using-execvp</link>
			<pubDate>Tue, 04 Jun 2024 12:27:26 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1676@/forum/discussions</guid>
			<description><![CDATA[<p style="text-align: justify;"><span style="color: #134f5c;"><span style="font-family: Caladea, serif;"><span style="font-size: large;"><b><span style="color: #bf0041;"><span>9</span></span><span style="color: #bf0041;"><span>. </span></span>A program using using execvp()</b></span></span></span></p><p style="text-align: justify;"><span style="color: #2f4f4f;"><span style="font-family: Caladea, serif;"><span style="font-size: large;">Implement a program to execute a user-specified command from the shell using `execvp()`.</span></span></span></p>]]></description>
		</item>
		<item>
			<title>5. The program name as the first argument</title>
			<link>https://www.emblogic.com/forum/discussion/1672/5-the-program-name-as-the-first-argument</link>
			<pubDate>Tue, 04 Jun 2024 12:23:32 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1672@/forum/discussions</guid>
			<description><![CDATA[<p style="text-align: justify;"><span style="color: #134f5c;"><span style="font-family: Caladea, serif;"><span style="font-size: large;"><b><span style="color: #bf0041;"><span>5</span></span><span style="color: #bf0041;"><span>. </span></span>The program name as the first argument</b></span></span></span></p><p style="text-align: justify;"><span style="color: #2f4f4f;"><span style="font-family: Caladea, serif;"><span style="font-size: large;">Why is it essential to pass the program name as the first argument in `execl()` or `execlp()`?</span></span></span></p>]]></description>
		</item>
		<item>
			<title>24. Create a custom shell</title>
			<link>https://www.emblogic.com/forum/discussion/1691/24-create-a-custom-shell</link>
			<pubDate>Tue, 04 Jun 2024 13:12:00 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1691@/forum/discussions</guid>
			<description><![CDATA[<p style="text-align: justify;"><span style="color: #2f4f4f;"><span style="font-family: Caladea, serif;"><span style="font-size: large;"><span style="color: #bf0041;"><span><b>2</b></span></span><span style="color: #bf0041;"><span><b>4</b></span></span><span style="color: #bf0041;"><span><b>. </b></span></span><span style="color: #134f5c;"><b>Create a custom shell</b></span></span></span></span></p><p style="text-align: justify;"><span style="color: #2f4f4f;"><span style="font-family: Caladea, serif;"><span style="font-size: large;">Create a custom shell that supports basic commands and uses `exec()` functions to execute external programs.</span></span></span></p>]]></description>
		</item>
		<item>
			<title>23. Execute a series of commands</title>
			<link>https://www.emblogic.com/forum/discussion/1690/23-execute-a-series-of-commands</link>
			<pubDate>Tue, 04 Jun 2024 13:11:40 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1690@/forum/discussions</guid>
			<description><![CDATA[<p style="text-align: justify;"><span style="color: #2f4f4f;"><span style="font-family: Caladea, serif;"><span style="font-size: large;"><span style="color: #bf0041;"><span><b>23</b></span></span><span style="color: #bf0041;"><span><b>. </b></span></span><span style="color: #134f5c;"><b>Ex</b></span><span style="color: #134f5c;"><b>ecute a series of commands</b></span></span></span></span></p><p style="text-align: justify;"><span style="color: #2f4f4f;"><span style="font-family: Caladea, serif;"><span style="font-size: large;">Implement a program to execute a series of commands in a pipeline using `fork()` and `exec()` functions (e.g., `ls | grep "file"`).</span></span></span></p>]]></description>
		</item>
		<item>
			<title>22. Multiple child processes</title>
			<link>https://www.emblogic.com/forum/discussion/1689/22-multiple-child-processes</link>
			<pubDate>Tue, 04 Jun 2024 13:09:55 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1689@/forum/discussions</guid>
			<description><![CDATA[<p style="text-align: justify;"><span style="color: #134f5c;"><span style="font-family: Caladea, serif;"><span style="font-size: large;"><b><span style="color: #bf0041;"><span>22. </span></span>Multiple child processes</b></span></span></span></p><p style="text-align: justify;"><span style="color: #2f4f4f;"><span style="font-family: Caladea, serif;"><span style="font-size: large;">Create a C program that uses `fork()` to create multiple child processes. Each child process should execute a different command (e.g., `date`, `ls -l`, `cal`) using `execl()`. The parent process should wait for all children to terminate before exiting.</span></span></span></p>]]></description>
		</item>
		<item>
			<title>17. A shell-like program using exec()</title>
			<link>https://www.emblogic.com/forum/discussion/1684/17-a-shell-like-program-using-exec</link>
			<pubDate>Tue, 04 Jun 2024 12:51:24 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1684@/forum/discussions</guid>
			<description><![CDATA[<p style="text-align: justify;"><span style="color: #134f5c;"><span style="font-family: Caladea, serif;"><span style="font-size: large;"><b><span style="color: #bf0041;"><span>1</span></span><span style="color: #bf0041;"><span>7</span></span><span style="color: #bf0041;"><span>. </span></span>A shell-like program using exec()</b></span></span></span></p><p style="text-align: justify;"><span style="color: #2f4f4f;"><span style="font-family: Caladea, serif;"><span style="font-size: large;">Implement a shell-like program that repeatedly takes user commands and executes them using appropriate `exec()` functions.</span></span></span></p>]]></description>
		</item>
   </channel>
</rss>