Search Results

Search: Posts Made By: colinireland
10,457
Posted By colinireland
Simple as... Thanks for your help balajesuri...
Simple as...

Thanks for your help balajesuri (https://www.unix.com/members/302059845.html)
10,457
Posted By colinireland
Preserve trailing whitespace in variable
Hello,

I wondering how I can echo a string without having the trailing whitespace removed.

For example I have a string str="TESTING123 " that I need to hash using sha1. I get the correct answer...
11,403
Posted By colinireland
Hello bakunin, Thanks for your reply. The...
Hello bakunin,

Thanks for your reply. The main issue I am having is reading in output from a terminal to a variable in the bash script. I know the following won't work but hopefully it can...
11,403
Posted By colinireland
Read input from another tty
Hello,

I am trying to find out how I can find the tty number of a terminal a bash script has just created.

Ultimately what I am trying to achieve is a script that starts a new terminal where...
2,533
Posted By colinireland
How to remove words that contain 3+ of the same character in a row?
Hello,

I am looking for a way to remove words from a list that contain 3 or more of the same character.

For example lets say the full list is as follows

ABCDEF
ABBHJK
AAAHJD
KKPPPP...
21,456
Posted By colinireland
Hello balajesuri,...
Hello balajesuri, (https://www.unix.com/members/302059845.html)

Sorry I should have mentioned that the server is a shared hosting server so many domains are sharing the same IP address. Perhaps PHP...
21,456
Posted By colinireland
Hello balajesuri,...
Hello balajesuri, (https://www.unix.com/members/302059845.html)

Thank you for your reply.

Lets say I have a website example.com hosted on two separate servers, 1.3.5.7 and 2.4.6.8.

To view...
21,456
Posted By colinireland
Specifying IP address with curl/wget
Hello,

I am wondering does anyone know of a method using curl/wget or other where by I could specify the IP address of the server I wish to query for a website.

Something similar to editing...
3,095
Posted By colinireland
[Solved] Using SSH in bash script
Hello,

I am writing a script that has to log in to X number of servers over a full C class range.

I am only keyed on a certain number of these servers and this can change from time to time.
...
2,733
Posted By colinireland
Hello, Thats great lads. Worked a charm. Had...
Hello,

Thats great lads. Worked a charm. Had the she bang in already but never thought about putting in the full path.

Thanks for yer help
Colin
2,733
Posted By colinireland
Problem executing perl script on remote server
Hello,

I am running in to a problem running a perl script on a remote server.

I can run a simple script test.pl which contains just a print statment without issue by running
ssh root@1.2.3.4...
8,544
Posted By colinireland
How to skip command if it is hanging while waiting for response
Hello,

I have a script that contains the command "whois 1.2.3.4"

Sometimes this command takes far too long to produce any output and as a result the rest of the script is not executed.

Can...
1,414
Posted By colinireland
Thanks in2nix4life, That worked perfectly....
Thanks in2nix4life,

That worked perfectly. Can you explain how '\([[:alpha:]]\)\1' works to me?

Colin
1,414
Posted By colinireland
Beginner looking for help
Hello,

I am trying to write a script that reads names from a file called input, removes names if they have the same letter next to each other and prints the others.

e.g. Colin & John would be...
Showing results 1 to 14 of 14

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