i made this tasks. and i need some explenation or just remake my code.
Hello i hope this post is ok! and i hope that i get the point of rules
i made this tasks by my self but few of them arent working.. and i dont know why!?
u think u could help me? to give me some reasons why dont they work.. and remake my code that will work?
hope to get answer soon!
greetz
1. Write a shell program which renames the current directory with the given file extension to another extension. The playoffs are given on the command line.
Example usage:
$ Rename *.txt to *.doc
will be renamed:
aaa.txt in aaa.doc
Juhutxt in Juhudoc
...
* To solve, you can also help with sed or awk commands.
2. Write a shell program to check once every five minutes if the system appears a process and attempt to kill him. Name of the process we give the command line.
Example usage:
$ Kill firefox
computer will be checked every five minutes, if any process running called Firefox, and will try to kill him. Hint: Be sure to use the kill command.
4. 5.Write a shell program that records the daily availability of computers. As the argument we give him a file containing a list of computers, the program should check every five minutes if they are available. In a file (log) to record, if any of the computers are not reachable, the name and the time was not available.
Example usage:
$ Check list_of_computers.txt
prints in the book:
io.fri.uni-lj.si ni dosegljiv ob 15:31
io.fri.uni-lj.si ni dosegljiv ob 15:36
io.fri.uni-lj.si ni dosegljiv ob 15:41
verbena.fe.uni-lj.si ni dosegljiv ob 15:41
...
*********************************************************
5. Write a shell program, which scans all files in the specified directory and its poddirektorijih and displays the current file, (the date of last change).
Example output:
The latest $ / usr / etc
/ Usr / etc / httpd / httpd Oct 25 12:16
*********************************************************
Faculty of Computer and Information Science
Slovenia, Ljubljana
Prof. Peer Spletna u?ilnica FRI
How did you exactly call it?
Are you sure you have also supplied the second arg
I also run this script with only one argument and it deleted the extensions.
How did you exactly call it?
Are you sure you have also supplied the second arg
I also run this script with only one argument and it deleted the extensions.
We have regularly questions about how to create users and user accounts. But regularly user accounts need to be deleted too. It is quite easy to delete the user account itself but usually the HOME directory of the user remains.
It is good style to remove these directories but simply deleting... (3 Replies)
1. Write a shell program which renames the current directory with the given file extension to another extension. The playoffs are given on the command line.
Example usage:
$ Rename txt doc
will be renamed:
aaa.txt in aaa.doc
Juhutxt in Juhudoc
...
* To solve, you can also help with... (5 Replies)
I've been given more responsibility at work and was basically told to take junior system admin responsibilities over our aix box. The catch is, I need to learn on my own. I know basics, but what are some task that I could perform on a daily basis for starters? We have a support group, but not so... (2 Replies)
Hi guys! I have a dummy question for u :p
I cant find a solution for these tascks...tried everything (i know :cool: ).
1 Issue the following command sleep 1000
Note that sleep 1000 waits 1000 seconds!!! You cannot do anything now!!!
2 Open another terminal window and enter the tty... (1 Reply)
Could someone tell me how I can simplify the script that follows!!!
I know that there must be a way how to
grep Average from sar01..................
sar02 .......................
sar03.......................
sar04... (3 Replies)