Search Results

Search: Posts Made By: Miniqpa
1,435
Posted By Miniqpa
Thanks a lot both options are working very well. ...
Thanks a lot both options are working very well.
Are the brackets replacing the backticks? Or do they have another meaning?

Now i am trying to get every single option to work because,

[..]sed...
1,435
Posted By Miniqpa
Find / sed on lnx/AIX/sun
Hello @all

first of all in the best case this script has to work on every os (lnx/aix/sun).

It's very simple what it should do.

I have a standard path and I'll call it for this example...
1,682
Posted By Miniqpa
Ok so as every other language ;) But if I do...
Ok so as every other language ;)

But if I do it this way, it will not throw errors if there is a missing parameter?

After some google if found that shell is capable to do function, so i come...
1,682
Posted By Miniqpa
yeah propably. The thing is that the normal part...
yeah propably. The thing is that the normal part has to be executed first because otherwhise the start part will not work.

Is it still working if i put the case block at the bottom of the script?...
1,682
Posted By Miniqpa
So it would be your first example in post #2? ...
So it would be your first example in post #2?

kind regards
1,682
Posted By Miniqpa
Is this also working the other way around? ...
Is this also working the other way around?
#!/bin/bash
#normal script
<some code>
<some code>

# start block
if [ "$1" = "start" ]; then
<some start code>
<some start code>
fi

...
1,682
Posted By Miniqpa
Script parameter
Hello!

I have a question about scripts with parameters.
I have a install script and i want it to start the daemon if the install_script has the parameter start at execution.

If there is not...
Showing results 1 to 7 of 7

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