Forum: Shell Scripting Jun 19th, 2007 |
| Replies: 2 Views: 3,327 You've posted it to wrong forum..
Post it here (http://www.daniweb.com/forums/forum72.html).. |
Forum: Shell Scripting Jun 14th, 2007 |
| Replies: 1 Views: 2,848 Not clear what's the problem?
What's meant by "so that users can execute those by keeping the script inside the sudo menu" ? |
Forum: Shell Scripting Jun 14th, 2007 |
| Replies: 7 Views: 11,660 |
Forum: Shell Scripting Jun 14th, 2007 |
| Replies: 1 Views: 1,170 1. You set the umask using umask command.
2. If you want to set "default" umask you add appropriate command (e.g. umask 002) in some initialization script. E.g. .profile or .bashrc etc.
3. Why?... |
Forum: Shell Scripting Jun 14th, 2007 |
| Replies: 2 Views: 2,210 Does this help ?
#!/bin/bash
file_with_workstations_list=/tmp/input_list.txt
while read workstation_name
do
#do you stuff with workstation_name
echo "Read workstation name: "... |
Forum: Shell Scripting Jun 14th, 2007 |
| Replies: 1 Views: 4,785 What in the name of thundering blisters you think guys here are for ?
Do you work ?!!
Post your code if you have a problem.. We're here to "help you do it" not "do it".. |
Forum: Shell Scripting Jun 14th, 2007 |
| Replies: 1 Views: 1,231 With the special divine powers bestowed upon me I can see your makefile and see that on line number 3351 you have an extra comma which is causing this error. Remove it and it should work. |
Forum: Shell Scripting Jun 14th, 2007 |
| Replies: 1 Views: 1,378 You could consider [mis]using logadm.
See "man logadm"
It gives you all that you need. |
Forum: Shell Scripting May 24th, 2007 |
| Replies: 2 Views: 1,147 If you just wanna create file without any contents use the command that is meant for it. :)
Use "mkfile", or simply "touch" if you don't wanna complicate things.
If you want to write something in... |
Forum: Shell Scripting Apr 16th, 2007 |
| Replies: 1 Views: 1,040 I don't think it's possible though I'm not 100% sure.
Here is what I found in the advanced scripting link I refer to.
http://www.tldp.org/LDP/abs/html/parameter-substitution.html#PARAMSUBREF
... |
Forum: Shell Scripting Apr 16th, 2007 |
| Replies: 4 Views: 2,055 This is the Shell Scripting forum.. |
Forum: Shell Scripting Apr 16th, 2007 |
| Replies: 4 Views: 1,619 It's a common error to do:
number_of_lines=`wc -l file_name`
To be precise:
number_of_lines=`wc -l file_name | awk '{print $1}'` |
Forum: Shell Scripting Apr 16th, 2007 |
| Replies: 1 Views: 1,847 Read this (http://www.daniweb.com/techtalkforums/announcement8-2.html).
This is what I'll tell you..
#!/bin/sh
hardcoded_folder="xxx"
#expected args:
# $1: Relative path of file to be... |
Forum: Shell Scripting Apr 16th, 2007 |
| Replies: 1 Views: 1,774 >> now how to append the script so tht it now inserts the first argument into the middle of the file and also the original file must retain its original name.
Not clear what you wanna do??
append... |
Forum: Shell Scripting Mar 18th, 2007 |
| Replies: 2 Views: 1,438 |
Forum: Shell Scripting Mar 15th, 2007 |
| Replies: 1 Views: 1,259 I didn't really get what you wanna do, stupid it may sound but if what you want all 250 .temp_as_$fname/IDX_Issue.txt and .temp_as_$fname/TXT_Issue.txt files concatenated into one single file (or 2... |
Forum: Shell Scripting Mar 15th, 2007 |
| Replies: 2 Views: 2,077 Use awk (hint: Use getline()). Post your code and I'll correct it. |