Hello.
I'm new to Perl and I am not sure how to interpret command line arguments in the program. I am writing a program similar to the Unix utility 'tail' and need to check if first argument is '-1' ([dash]1) or any arbitrary number of lines to output. How would I write an 'if' statement to check for the dash (-) and a number?
Hi,
I have create a unix prog file to validate data and send out an email. Below is the command used to send out email in the program. But it is not triggering the email.
Recently I had a couple of instances of programs sending data (copies of some of my config files) out over the net. I consider this very bad form on behalf of the writers, and I want to prevent it happening in future.
One example was a program that had a command line diagnostic utility.
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Trying to run script but everytime I do I get teh following error message
line 4: [1: command not found
I have attempted different version but still come up with same results.
2.
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
The characters "*", "?", "[", and "]" have special meaning in Unix.
Unix based operating systems like Linux offer a unique approach to join two discrete commands, and generate a new command using the concept of pipe(lines). For example, consider command1|command2. Here, whatever output is generated by the first command becomes the standard input for the second command.
1. The problem statement, all variables and given/known data:
Problem 1:
I need to create a shell script the takes three arguments and echo's out "There once was a ____that____who like to_____"
The arguments go where the blanks are.
Problemt 2:
-Do an LS and store the listings in a file
-Open the file in emacs.
Hey everyone I have an assignment due in 3 weeks to write a basic Linux program using the terminal in Fedora 10. The program just has to be something "that helps your day be a little easier".
I have a program which produces useful information on stdout but also reads from stdin. I want to redirect its standard output to a file without providing anything on standard input. So far, so good: I can do:
program > output
and don't do anything in the tty.
However, the problem is I want to do this in the background.