freelanceprogrammers.org Forum Index » Perl
Need Urgent help
Joined: 16 Jun 2004
Posts: 1
Need Urgent help
Hi friends,
can anyone help me do the following project, if anyone have already
done , please do help me.
Project 1 - Small Shell
Create a simple restricted shell:
A shell in the command line interpreter for an operating system. It
gives direct access to the underlying resources.
1) Provides Login for the user:
Use a simple password protection system
All user files are in your file system
Each user has their own directory structure ( that you will create
when they first login )
They will have only one directory to start and it will bear there
login name.
2) You must support the following commands:
File system commands
ls - list files (argument -l and -a must be supported)
cd - change directory
mkdir - make directory
rename - rename file
File Content Manipulation
cat file - Prints the file to the screen
edit - invokes an editor
perl file - runs a file with perl instructions
sort file - sorts the file and sends the results to the screen (-f -
d and -n)
match - prints lines of file that match regular expression
Piping and redirection
Create the concept of number pipes |1 |2 |3... up to three (more if
you want)
Uses the pipe to redirect input to other programs or to files
ls -1 |1| sort |2> sorted_file |1> unsorted_file
The first time a numbered pipe is created determines the content of
the pipe then the ending
Setting shell parameters
set $parameter = "value"
echo $parameter
edit $parameter - Tests whether the file name exists or creates a
new one if it does not.
Joined: 16 Jun 2004
Posts: 9
Need Urgent help
<g> - isn`t this called "unix" ...? :=0
On 6/15/04 3:50 PM, aarthisoft at aarthisoft@... wrote:
> Hi friends,
> can anyone help me do the following project, if anyone have already
> done , please do help me.
>
> Project 1 - Small Shell
> Create a simple restricted shell:
>
> A shell in the command line interpreter for an operating system. It
> gives direct access to the underlying resources.
>
> 1) Provides Login for the user:
>
> Use a simple password protection system
> All user files are in your file system
> Each user has their own directory structure ( that you will create
> when they first login )
> They will have only one directory to start and it will bear there
> login name.
> 2) You must support the following commands:
>
> File system commands
> ls - list files (argument -l and -a must be supported)
> cd - change directory
> mkdir - make directory
> rename - rename file
> File Content Manipulation
> cat file - Prints the file to the screen
> edit - invokes an editor
> perl file - runs a file with perl instructions
> sort file - sorts the file and sends the results to the screen (-f -
> d and -n)
> match - prints lines of file that match regular expression
> Piping and redirection
> Create the concept of number pipes |1 |2 |3... up to three (more if
> you want)
> Uses the pipe to redirect input to other programs or to files
> ls -1 |1| sort |2> sorted_file |1> unsorted_file
> The first time a numbered pipe is created determines the content of
> the pipe then the ending
> Setting shell parameters
> set $parameter = "value"
> echo $parameter
> edit $parameter - Tests whether the file name exists or creates a
> new one if it does not.
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







