10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I'm confused about the 'exec' command. I get the basics. I can redirect stdout and stderr to one log file with:
exec >> $logFile 2>&1
However, that code requires admin rights. In other scripts, when faced with this, I'll call 'sudo' and then pass a hashed password like this:
... (8 Replies)
Discussion started by: hungryd
2. Shell Programming and Scripting
I want to add a shortcut "xmll" to my .cshrc file. By using "xmll" I want the following command to be executed:
find . -type f -name 'T*.xml' > xml_list.txt
alias xmll 'find . -type f -name 'T*.xml' > xml_list.txt'
What is the correct syntax?
Thank... (7 Replies)
Discussion started by: friend
I use hp HP-UX.
I want to get vsz of the process .
What is the syntax ...
ps: illegal option -- h
ps: option requires an argument -- p
usage: ps (3 Replies)
Discussion started by: chuikingman
4. UNIX for Dummies Questions & Answers
to take backup what is the command tell syntax (1 Reply)
Discussion started by: sunilamarnadh
5. UNIX for Dummies Questions & Answers
how can i make my own commamnds for unix shell scripts.
1-i want to use "down arrow key" for previous runned unix commands.
then how to acheive it.
2-Generally TAB --- complete filename or command up to the point of uniqueness ..but here its not working ..
I m new to... (1 Reply)
Discussion started by: pradeepcarya
6. Shell Programming and Scripting
I want the output to show 2 lines following this line.
How do I amend my awk command.
Thanks (3 Replies)
Discussion started by: Tirmazi
7. UNIX for Dummies Questions & Answers
Can anyone tell me what the syntax is for the bind command in bash? I'm using OS X and the book i have ias written in 2005 ('Learning the bash shell') I'm guessing it was for an earlier version. It says something about single and double quotes, but I'm not sure exactly in what order they're... (2 Replies)
Discussion started by: Straitsfan
8. Shell Programming and Scripting
I spent too much time away from Unix, now I can't remember how to issue a simple until command in ksh :mad:
could you tell me what is wrong with the following code sample:
export v = "1"
echo 'executing repeat_until'
v = `expr $v + 1`
I've... (3 Replies)
Discussion started by: 435 Gavea
9. UNIX for Dummies Questions & Answers
Here's my situation. I am trying to move all files from one directory to another. I have the following requirements:
1) Move all files in /myfiles/wip matching pattern "*.tif" to /work/in that are at least 10 minutes old (or older).
2) When the files are moved, they need to be moved into... (2 Replies)
Discussion started by: dsimpg1
10. UNIX for Dummies Questions & Answers
I am trying to extract a file using tar. I cd'ed to the directory I wanted to start in. I had the tar file in the same directory. I executed tar xvf filename . It appeared that it was extracting into the directory the tar file was created from instead of into the directory I was in. How do I... (1 Reply)
Discussion started by: baunocj