473,326 Members | 2,110 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Wrapper shell script

5
Hey my teacher has this as a question on my current lab and im having trouble on how to start it. here it is:
************************************************** ****************
Write a menu driven "wrapper" to the FIND command. It should walk the user through using the command, asking the user the following questions(in this order)
what directory to start in?
what criteria to use to search for files
1. by name
2. by owner
what action to perform on each file(these are options tot eh find command)
1. print
2. ls
3. execute a command

if #3 is chosen, allow the user to enter the command to run on the file

once all the information has been gathered, form the proper FIND command and execute it. display the results of the command to the screen. use the man page ont he find command to determine which options to use.

************************************************** **************

Any help will be great, thanks.
Feb 17 '08 #1
1 2736
numberwhun
3,509 Expert Mod 2GB
Hey my teacher has this as a question on my current lab and im having trouble on how to start it. here it is:
************************************************** ****************
Write a menu driven "wrapper" to the FIND command. It should walk the user through using the command, asking the user the following questions(in this order)
what directory to start in?
what criteria to use to search for files
1. by name
2. by owner
what action to perform on each file(these are options tot eh find command)
1. print
2. ls
3. execute a command

if #3 is chosen, allow the user to enter the command to run on the file

once all the information has been gathered, form the proper FIND command and execute it. display the results of the command to the screen. use the man page ont he find command to determine which options to use.

************************************************** **************

Any help will be great, thanks.
That all actually sounds pretty simple. I would read your book and try to figure it out. If you get stuck, post your code here, but we cannot do your homework for you. Its against site policy.

Regards,

Jeff
Feb 17 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Nilsson Mats | last post by:
Hi! I have an intresting problem for our programming community on Solaris. I want to develop an environment where: 1) The developers shouldn't need to bother about which Perl version to use....
6
by: Sanket80 | last post by:
Hi, I have one shell script which runs a report and sends the output to user. The shell script has some queries written in it in SQL and hence when I execute a shell script via a concurrent...
8
by: Seth7TS | last post by:
Hi everyone, i need to make a protection for a fortran software(a line command in linux). My desire is to write a C wrapper that control the execution of the program. Can someone help me? i dont...
3
by: telduivel | last post by:
Can someone please help me with this: I have a python script, that at some point calls a linux bash script (.sh). Starting the shell script is the last thing my python script needs to do, so I...
5
by: Hul Tytus | last post by:
comp.lang.c c programs & shell conditionals How is a unix shell script made to respond to the value returned by a program compiled from c code? The shell script below is my current effort,...
5
by: inetquestion | last post by:
I am looking for a web interface for shell commands or shell scripts. Does anyone know of any exexisting php scripts which would solve this requirement? PHP form accepts input from a user, then...
24
by: Peter Michaux | last post by:
I have a Perl script that I want to run as a set-user-ID program. Many OSes don't allow scripts run as set-user-ID. To make this script portable, it seems I need to write a C wrapper program that...
7
by: Samuel A. Falvo II | last post by:
I have a shell script script.sh that launches a Java process in the background using the &-operator, like so: #!/bin/bash java ... arguments here ... & In my Python code, I want to invoke...
4
by: devi thapa | last post by:
Hi, I am executing a python script in a shell script. The python script actually returns a value. So, can I get the return value in a shell script? If yes, then help me out. Regards, Devi
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.