Showing results 1 to 25 of 500
Search took 0.09 seconds.
Search: Posts Made By: rbatte1
Forum: Shell Programming and Scripting 20 Hours Ago
Replies: 1
Views: 203
Posted By rbatte1
What shell is this? I don't recognise it. It...

What shell is this? I don't recognise it. It looks more like C to me. If it is, we can move it to a more suitable forum.



Thanks, in advance,
Robin
Forum: AIX 22 Hours Ago
Replies: 1
Views: 145
Posted By rbatte1
Could you not have multiple groups defined in the...

Could you not have multiple groups defined in the sugroups= field for the root account and add a group that ONLY has your backdoor account in? I'm pretty sure it is a comma separated list but I...
Forum: Shell Programming and Scripting 3 Days Ago
Replies: 5
Views: 215
Posted By rbatte1
Good to know that these are already in...

Good to know that these are already in hand/planned. If rootvg is large, what do you do with a mksysb image? You can trim this down, of course, but it's messy and needs maintenance.

Personally...
Forum: Shell Programming and Scripting 4 Days Ago
Replies: 5
Views: 215
Posted By rbatte1
Do you also check for the boot device being on...

Do you also check for the boot device being on both/all disks in rootvg and the dump device? I had a suggestion that the dump device should not be mirrored, so we created two separate devices, on...
Forum: What is on Your Mind? 4 Days Ago
Replies: 8
Views: 250
Posted By rbatte1
Perhaps this is this the Kudos you really want?...

Perhaps this is this the Kudos you really want? https://tse4.mm.bing.net/th?id=OIP.Cbz7kOO53IjEqyHPZ1SligEsEs&pid=Api


Sorry, but I can only add my thanks and congratulations to the ever growing...
Forum: Shell Programming and Scripting 1 Week Ago
Replies: 1
Views: 230
Posted By rbatte1
Can you retrieve the file from SCCS though? The...

Can you retrieve the file from SCCS though? The process does not just 'store your file', it stores a baseline version of your file that you can then work on and have a version history. You should...
Forum: How to Post in the The UNIX and Linux Forums 1 Week Ago
Replies: 1
Views: 203
Posted By rbatte1
Presumably the servers in question would have a...

Presumably the servers in question would have a static permanent/management IP address that always directs you to the server you want and the VIP that moves depending where the service is running.
...
Forum: UNIX for Beginners Questions & Answers 1 Week Ago
Replies: 5
Views: 166
Posted By rbatte1
How about cut? Not the sharpest hammer in the...

How about cut? Not the sharpest hammer in the box, but useful:-cut -f4- -d"/" input_file > output_fileThe -f value has a trailing - so it will grab anything beyond the 3rd /, including other /s if...
Forum: Shell Programming and Scripting 1 Week Ago
Replies: 9
Views: 315
Posted By rbatte1
if pgrep isn't what you want, could you make an...

if pgrep isn't what you want, could you make an expression from the item you are searching for? I avoid using a contruct like ps -ef | grep this | grep -v grep byt writing it as ps -ef | grep -E...
Forum: UNIX for Beginners Questions & Answers 1 Week Ago
Replies: 3
Views: 158
Posted By rbatte1
You also need to ensure that your file creation...

You also need to ensure that your file creation and all the output being put into it is Atomic, i.e. a single operation that takes a single IO. Often this is done by creating the file and building...
Forum: Shell Programming and Scripting 1 Week Ago
Replies: 9
Views: 322
Posted By rbatte1
Assuming that your code actually starts...

Assuming that your code actually starts #!/bin/bash then you can actually simplify this to:-#!/bin/bash

[ -z "$1" ] && echo "On doit donner un dossier." && exit

for ficher in /folder/$1/*
do
...
Forum: Shell Programming and Scripting 1 Week Ago
Replies: 5
Views: 290
Posted By rbatte1
So your script might start:-#!/bin/bash echo...

So your script might start:-#!/bin/bash

echo "$(date) : This is the start"

if [ $(esxcli software vib list | grep -ic net-mst) -eq 1 ]
then
echo "$(date) : Software found"
esxcli...
Forum: Shell Programming and Scripting 1 Week Ago
Replies: 9
Views: 322
Posted By rbatte1
Wold you be better with the find command? You...

Wold you be better with the find command? You can ask it to locate files of the name format you need and call a command for each one found.

Perhaps this will get you started:-find...
Forum: Shell Programming and Scripting 1 Week Ago
Replies: 5
Views: 290
Posted By rbatte1
This look a little like a shell script, in which...

This look a little like a shell script, in which case i would say that you finish an if...then... whith a fi but your condition for the if needs to be fixed somewhat.

What does esxcli software vib...
Forum: Shell Programming and Scripting 1 Week Ago
Replies: 4
Views: 247
Posted By rbatte1
To explain a little more, the string you want to...

To explain a little more, the string you want to compare has spaces in it. The syntax of the if test is does this item have a relationship with another item. The space inthe string means that you...
Forum: UNIX for Advanced & Expert Users 1 Week Ago
Replies: 4
Views: 254
Posted By rbatte1
The smit or smitty panels are the System...

The smit or smitty panels are the System Management Interface Tool and are just helpful panels to complete tasks that you can do on the command line, if you know how.

Is there a specific subject...
Forum: UNIX for Beginners Questions & Answers 2 Weeks Ago
Replies: 2
Views: 245
Posted By rbatte1
Please paste (in CODE tags) your ssh command and...

Please paste (in CODE tags) your ssh command and the output you receive.

Is the connection actually established & login completed, but you get an annoying message?



Thanks, in advance,
Robin
Forum: Solaris 3 Weeks Ago
Replies: 2
Views: 370
Posted By rbatte1
Can you show us the command you are using to send...

Can you show us the command you are using to send the mail? (The actual command, not a call to a script that has it embedded)

The output might suggest that you are trying to write to...
Forum: What is on Your Mind? 3 Weeks Ago
Replies: 29
Views: 516
Posted By rbatte1
Display If I 'Go Advanced' for this reply, all looks...

If I 'Go Advanced' for this reply, all looks normal to me and I can post this message with a icon. All seems fine to me.



Robin
Forum: What is on Your Mind? 3 Weeks Ago
Replies: 29
Views: 516
Posted By rbatte1
Much better for me (Linux 6 desktop with Firefox...

Much better for me (Linux 6 desktop with Firefox 52~ish)
Forum: Shell Programming and Scripting 3 Weeks Ago
Replies: 15
Views: 573
Posted By rbatte1
Whoooops! I think there is a mistake in my...

Whoooops! I think there is a mistake in my suggestion. The expression to match the filenames should be wrapped in double quotes, " and somehow I've lost the beginning out. Try this amended version...
Forum: Shell Programming and Scripting 3 Weeks Ago
Replies: 15
Views: 573
Posted By rbatte1
You could remove the OPEN command by putting the...

You could remove the OPEN command by putting the hostname on the ftp line:-/usr/bin/ftp -inv $ HOST <<EOFThe files you have are local (your client sends) so work them out before starting the FTP.
...
Forum: UNIX for Beginners Questions & Answers 3 Weeks Ago
Replies: 7
Views: 339
Posted By rbatte1
Would you like to switch on -n by default or...

Would you like to switch on -n by default or prevent it working at all? I'm not sure which way round you mean.

Perhaps you have scripts that use it, but it doesn't work on HP-UX and you want your...
Forum: Red Hat 4 Weeks Ago
Replies: 2
Views: 178
Posted By rbatte1
Two questions:- What does netstat -na | grep...

Two questions:-
What does netstat -na | grep LISTEN | grep 80 show?
Do you have an IPv6 address allocated? What do you get as output for ip a s ?


You may have it already available.
...
Forum: Shell Programming and Scripting 4 Weeks Ago
Replies: 4
Views: 371
Posted By rbatte1
I would go further:-if $(grep -q "now is the...

I would go further:-if $(grep -q "now is the time" 1000linefile.txt)
then
echo "It's a HIT"
else
echo "Missed"
fiThe extra benefit is that the -q flag will cause the grep to exit...
Showing results 1 to 25 of 500

 


All times are GMT -4. The time now is 07:38 AM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password





Not a Forum Member?
Forgot Password?