Search Results

Showing results 1 to 40 of 191
Search took 0.03 seconds.
Search: Posts Made By: masijade ; Forum: Shell Scripting and child forums
Forum: Shell Scripting 3 Days Ago
Replies: 3
Views: 168
Posted By masijade
Make sure the ssh is configured to allow public key access. Also, make sure your authorized_keys file is setup properly, and are you sure its asking for a password and not a passphrase, which is...
Forum: Shell Scripting 22 Days Ago
Replies: 12
Views: 982
Posted By masijade
How is javascript going to help with this when there is no server and no html, or anything else that has anything at all to do with JavaScript? Or is this really a download after all? Even though...
Forum: Shell Scripting 23 Days Ago
Replies: 12
Views: 982
Posted By masijade
None of those. This is simply accessing a file on a shared disk. Not a download at all. Take a look at his other threads on this forum about access times and downloads.
Forum: Shell Scripting 26 Days Ago
Replies: 1
Views: 468
Posted By masijade
Check out the "eval" command.

Edit: I.E.

eval "echo \$${AGENCY}_INCOMING_READY"
Forum: Shell Scripting 27 Days Ago
Replies: 7
Views: 530
Posted By masijade
Then you're tough out of luck. If you poll the file with ls -u (on solaris) every few milliseconds you can get a rough (and I do mean rough) estimate, at an extreme overhead cost, but that's all.
...
Forum: Shell Scripting 27 Days Ago
Replies: 7
Views: 530
Posted By masijade
Go back further.

Explain, exactly, what it is you are trying to do, with all factors detailed.
Forum: Shell Scripting 27 Days Ago
Replies: 7
Views: 530
Posted By masijade
If this is that "download count" problem, then you are going about it completely the wrong way.

If it is "good enough" to get the count the next day, then simply parse the servers access log. If...
Forum: Shell Scripting 27 Days Ago
Replies: 4
Views: 499
Posted By masijade
At least on Solaris "-u" is the option. For any other system you are going to have to man ls and actually read it to find out if any of the options have anything to do with access time and then...
Forum: Shell Scripting 27 Days Ago
Replies: 4
Views: 499
Posted By masijade
man ls
Forum: Shell Scripting 33 Days Ago
Replies: 1
Views: 534
Posted By masijade
We are not here to do your (home)work for you.

We are more than happy to help you with it, but you have to do it. Show us what you are trying and we will help you to correct it, or describe what...
Forum: Shell Scripting 34 Days Ago
Replies: 14
Views: 1,176
Posted By masijade
I didn't mention, that was on Solaris. On something else the "t" may not be necessary (and is seemingly not on your system), but that decimal point is (when including seconds).



There is a...
Forum: Shell Scripting Nov 16th, 2009
Replies: 14
Views: 1,176
Posted By masijade
The man page for ls and the awk command.


ls -E f1.sh | awk '{print $6, $7, $8}'
Forum: Shell Scripting Nov 16th, 2009
Replies: 14
Views: 1,176
Posted By masijade
touch -mt 200911141130.00 f1.sh

Take a closer look at the man page.
Forum: Shell Scripting Nov 16th, 2009
Replies: 14
Views: 1,176
Posted By masijade
Yes it will. Why don't you try showing us what you tried.

P.S. Did you try typing "man touch" first?
Forum: Shell Scripting Nov 11th, 2009
Replies: 4
Views: 680
Posted By masijade
http://www.regular-expressions.info/tutorial.html
Forum: Shell Scripting Nov 9th, 2009
Replies: 2
Views: 705
Posted By masijade
$file_name, not file_name
ditto for the other variables
use "sed -e" not just "sed"
and change $file.new to ${file}.new just to be safe

Edit: So many problems, so little text. ;-)
Forum: Shell Scripting Nov 4th, 2009
Replies: 3
Views: 691
Posted By masijade
That "^M" is a unix line end, use the dos2unix command first. For the rest use sed.
Forum: Shell Scripting Nov 4th, 2009
Replies: 3
Views: 691
Posted By masijade
Do kindly explain exactly what you need. Junk character means nothing.
Forum: Shell Scripting Nov 3rd, 2009
Replies: 3
Views: 670
Posted By masijade
Configure the ssh to use private keys.
Forum: Shell Scripting Jul 6th, 2009
Replies: 5
Views: 696
Posted By masijade
See http://www.daniweb.com/forums/thread15164.html
Forum: Shell Scripting Jul 6th, 2009
Replies: 2
Views: 624
Posted By masijade
Do you really want to copy the modified line to the end of the original file so that the same tag exists twice with differing values?

Also, you can avoid having to escape the "/" by using a...
Forum: Shell Scripting Jul 6th, 2009
Replies: 5
Views: 696
Posted By masijade
#! is a built-in exec. The shell script is executed in the shell declared on this line.

$1 etc are the arguments provided on the command line (or provided on the function call when used inside a...
Forum: Shell Scripting May 27th, 2009
Replies: 4
Views: 1,135
Posted By masijade
grep will only match the lines (and return the entire line, not just the matched portions of it), and will not alter them. If you wish to alter the lines you are going to need to use sed, or...
Forum: Shell Scripting Apr 7th, 2009
Replies: 6
Views: 720
Posted By masijade
Then check in VB and or Batch forums as this forum is for Unix Scripting, as Windows Scripting is referred to as either VB or Batch, not Shell, Scripting.
Forum: Shell Scripting Apr 7th, 2009
Replies: 6
Views: 720
Posted By masijade
type "time" at the command line and check it out.

Then type "man time" at the command line and read that carefully (assuming, of course, that you are using a Unix system, as that is what this...
Forum: Shell Scripting Apr 7th, 2009
Replies: 6
Views: 720
Posted By masijade
See the "time" command.
Forum: Shell Scripting Mar 20th, 2009
Replies: 7
Views: 630
Posted By masijade
Please describe "does not run".
Forum: Shell Scripting Mar 19th, 2009
Replies: 7
Views: 630
Posted By masijade
That is not the full path to the command. I can guarantee that "." is not what you think it is. Use the full path whether setting the Path or using the full path in the command.
Forum: Shell Scripting Mar 19th, 2009
Replies: 7
Views: 630
Posted By masijade
They don't have a full environment. Set the environment variables you need (such as PATH) in the script.
Forum: Shell Scripting Mar 18th, 2009
Replies: 2
Views: 731
Posted By masijade
Actually do sudo test .... rather than sudo [ .... ]
Forum: Shell Scripting Mar 13th, 2009
Replies: 1
Views: 572
Posted By masijade
There is a tutorial at the top of this forum.
Forum: Shell Scripting Feb 27th, 2009
Replies: 3
Views: 569
Posted By masijade
man test

[ ] is a "shorthand"/"shell-builtin" for the command test. And, for reference, file-handle 0 is either standard out or standard in. I forget which and it has been years since I've had...
Forum: Shell Scripting Jan 20th, 2009
Replies: 6
Views: 908
Posted By masijade
Well, that's what you do. Take a look at the manual again, and see what other types of "patterns" that you can use in the same position that you currently have "13,16".
Forum: Shell Scripting Jan 20th, 2009
Replies: 6
Views: 908
Posted By masijade
sed with the -n option and the "p" "operator". Try reading the man page for sed again, then post your attempt here.
Forum: Shell Scripting Jan 16th, 2009
Replies: 4
Views: 1,092
Posted By masijade
Of course, the stuff with the replacement is completely unnecessary as this

s/^[^=]*=\(.*\)$/\1/

is the same as

s/^[^=]*=//

And the second is probably, at least slightly, more effecient.
Forum: Shell Scripting Dec 21st, 2008
Replies: 3
Views: 1,099
Posted By masijade
You're missing the loop. Think "while"
Forum: Shell Scripting Dec 1st, 2008
Replies: 10
Views: 2,064
Posted By masijade
How could it not be? Do you honestly need someone to tell you how to access an environment variable?
(echo $RANDOM)
Or maybe how to store it's results?
(varName=`echo $RANDOM`)
Forum: Shell Scripting Oct 5th, 2008
Replies: 1
Views: 721
Posted By masijade
see the man pages for the find command.
Forum: Shell Scripting Oct 3rd, 2008
Replies: 1
Views: 810
Posted By masijade
It means your script is suppossed to delete the files, but rather than actually deleting them, you will simply tar-gzip them and move them somewhere else. Essentially the "trash bin" process.
Forum: Shell Scripting Oct 1st, 2008
Replies: 5
Views: 2,227
Posted By masijade
There is no "columns" There are tab sizes, but those only apply to the current session (also saved in preferences but only for the current user), so that doesn't help as the next...
Showing results 1 to 40 of 191

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC