Search Results

Search: Posts Made By: MartyIX
1,841
Posted By MartyIX
Yes, thank you. I just think it would be...
Yes, thank you.

I just think it would be better if the cron would change the path for every script according to its location (and therefore the line cd /home/users/me wouldn't be necessarry)....
1,841
Posted By MartyIX
Cron changing folder for scripts
I would like to ask if cron when running a planned script changes the current folder for the script.

Thank you!
9,895
Posted By MartyIX
New commands: -nt, -ot, -ef I've adjusted...
New commands: -nt, -ot, -ef

I've adjusted the code and it seems to speed up at least twice:


#!/bin/sh


# File: test.sh
# Author: Martin Vseticka, 2008

verbose=0;

...
9,895
Posted By MartyIX
Well yes, in fact without external commands I...
Well yes, in fact without external commands I would be at a loss - it would be pretty much work


... and I thought right :-)))

Sure you're right -> one example of bad code for all:


...
9,895
Posted By MartyIX
> Do you have to do it without external commands?...
> Do you have to do it without external commands?

I'm not sure what you exactly mean. I may use whatever command except test - I got the assignment this way.

> I look forward to seeing it.
I...
9,895
Posted By MartyIX
I've got operations: -gt -lt == ( ) -z -n I'm...
I've got operations: -gt -lt == ( ) -z -n
I'm working on it and I'll post it here tomorrow (It's midnight here) I hope I'll finish the most important things

Well, it doesn't have to be a...
9,895
Posted By MartyIX
@cfajohnson: Of course without using test command...
@cfajohnson: Of course without using test command ;-)

Well, pointless maybe but it's not so easy to do :-) I've already done a half but it took me three hours ;-)
9,895
Posted By MartyIX
Exit status
I'm preparing for exam and one of exams is to write own test command...

I wonder if in unix is a command which just returns exit code you specify..

I know I can easily write a function like...
2,299
Posted By MartyIX
oh, printf is part of GNU project, I didn't know...
oh, printf is part of GNU project, I didn't know that.

I was affraid of much lower limits than 11GB ... it's ok then :-)
2,299
Posted By MartyIX
2era: > One clever workaround I stumbled on in...
2era:
> One clever workaround I stumbled on in these forums a few weeks ago used backticks to get the data out of the destination file before overwriting it.

Thank you! I like the solution :-)...
2,299
Posted By MartyIX
Franklin52: well, I use this solution often but...
Franklin52: well, I use this solution often but it seems to me a little weird to create a temporary file and rename it right away. I would expect this line:


paste -d":" 'file1' 'file2' |...
2,299
Posted By MartyIX
editing file in place
Is in Unix a tool that could do this:

paste -d":" 'file1' 'file2' | special_save "file1" # so that file1 would be treated in a way that would prevent problems with race condition

I know it...
3,524
Posted By MartyIX
2era: you're right thank you! :-) (Changing via...
2era: you're right thank you! :-)
(Changing via sed script wouldn't be problem but I didn't understand the behaviour and that was what confused me)

Well teacher said that pipe connects stdout of...
3,524
Posted By MartyIX
uuencode & uudecode - permissions
$ ls -l example_1.sh
-rwxr--r-- 1 vsetm7am nofiles 918 Sep 5 19:54 example_1.sh
$ stat -c %a example_1.sh
744
$ uuencode "test.file" <example_1.sh >uuexample.uu
$ uudecode uuexample.uu
$ ls -l...
6,793
Posted By MartyIX
Era: > The Powershell developers have the...
Era:
> The Powershell developers have the luxury of a clean slate and a knowledge of history
The whole discussion is about if to renew unix tools or not. And I know it's a courageous question from...
6,793
Posted By MartyIX
> What you should realize is that Unix is a...
> What you should realize is that Unix is a collection of tools written by lots of folks over many years. So there isn't much in the way of consistency. Tools were written to achieve a task and then...
44,113
Posted By MartyIX
@fpmurphy: uname command writes: GNU/Linux...
@fpmurphy: uname command writes: GNU/Linux 2.6.22-p4smp
6,793
Posted By MartyIX
@jim: thank you for your viewpoint ;-) >...
@jim: thank you for your viewpoint ;-)

> This whole discussion is analogous to: ...
I know but you won't persuade me it's not worthy to ask it ... :)
6,793
Posted By MartyIX
2jim: well, partly too, yes
2jim: well, partly too, yes
6,793
Posted By MartyIX
@vbe: Well, sure, but I was talking more about...
@vbe: Well, sure, but I was talking more about shell commands.. about the interface
6,793
Posted By MartyIX
Development of Unix
I was thinking about pros and cons of unix and about comparison Unix shell (bash) and unix commands with Windows PowerShell and its commands. I just would like to hear what do you mean about:

1....
44,113
Posted By MartyIX
fpmurphy: ...
fpmurphy:


u-pl27:~/ZKOUSKOVE/TEZSI_PRIKLADY$ stat example_1.sh
File: `example_1.sh'
Size: 918 Blocks: 2 IO Block: 4096 regular file
Device: fh/15d Inode:...
17,399
Posted By MartyIX
absolutely, thank you! :) (I'm sorry but it's...
absolutely, thank you! :)
(I'm sorry but it's part of my personality I always want to know how things exactly work O:-) )
17,399
Posted By MartyIX
u-pl27:~/ZKOUSKOVE/TEZSI_PRIKLADY$ find...
u-pl27:~/ZKOUSKOVE/TEZSI_PRIKLADY$ find ~/ZKOUSKOVE/CVS -type f -print | xargs grep -i '.cvs' >/dev/null
u-pl27:~/ZKOUSKOVE/TEZSI_PRIKLADY$ find ~/ZKOUSKOVE/CVS -type f | xargs grep -i '.cvs'...
44,113
Posted By MartyIX
I made a simple script and copied the output: ...
I made a simple script and copied the output:


file=example_1.sh;stat $file; cat $file >/dev/null; stat $file



File: `example_1.sh'
Size: 918 Blocks: 2 IO Block:...
Showing results 1 to 25 of 70

 
All times are GMT -4. The time now is 05:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy