Search Results

Search: Posts Made By: shadyuk
1,202
Posted By shadyuk
Number loop
Hello,

I've been trying to create a list of numbers in bash that loops every 10s as follow. So the list will contain 1-5 on start, then 2-6 after 10s and so on. However when it reaches 30 it...
Forum: Programming 01-20-2014
6,268
Posted By shadyuk
Thanks. This should work although i was hoping...
Thanks. This should work although i was hoping for a solution without writing to file.
Forum: Programming 01-20-2014
6,268
Posted By shadyuk
Amended above. I haven't constructed the entire...
Amended above. I haven't constructed the entire code yet as I'm testing snippets of it before piecing it all together.
Forum: Programming 01-20-2014
6,268
Posted By shadyuk
Sorry, that was just a typo. Even so, what you're...
Sorry, that was just a typo. Even so, what you're suggesting doesn't solve the problem.

---------- Post updated at 05:18 AM ---------- Previous update was at 05:11 AM ----------

I'm not...
Forum: Programming 01-20-2014
6,268
Posted By shadyuk
Global variable in for loop (BASH)
Hello,

I'm trying to read the variable "pause" from a for loop without luck. The function is dependant on the outcome of the test within the loop. If i run this, pause is always 0 within the...
1,242
Posted By shadyuk
Bash script and remote server issue
Hello,

I'm attempting to run a script on a remote server via SSH but am having issues getting the script to run using proprietary binaries located on the remote server as it keeps complaining...
2,866
Posted By shadyuk
I've tried wget but this downloads one file at a...
I've tried wget but this downloads one file at a time. I need a way of listing all the files for a web page and then scripting (in bash) a process to download say four of them simultaneously and to...
2,866
Posted By shadyuk
List and download web page files
Hello,

Does anyone know of a way to list all files related to a single web page and then to download say 4 files at a time simultaneously until the entire web page has been downloaded...
Forum: IP Networking 05-19-2013
2,059
Posted By shadyuk
Test Network Routing Issues (FREEBSD and RHEL)
Hello,

I'm attempting to setup a test network with a client-server based architecture using a proprietary application. The client works by communicating with the server on separate links...
10,037
Posted By shadyuk
Thanks Hanson, much of it was your work. ...
Thanks Hanson, much of it was your work.

I'm using it to differentiate between two mobile systems although it could be used for stress testing.

Another useful addition would be to include some...
10,037
Posted By shadyuk
Works great!! I amended it to include my very...
Works great!! I amended it to include my very simple additions.

#!/bin/bash
url_list=( http://www.bbc.co.uk http://www.cnn.com http://www.msn.com )

#Number of users to mimic simultaneously...
10,037
Posted By shadyuk
Not sure what the best approach is here. Please...
Not sure what the best approach is here. Please bare with me while I attempt to explain in a rudimentary fashion. What I need it to do is this:


user 1
download url
wait random
loop

&
...
10,037
Posted By shadyuk
Works great however I included the ampersand to...
Works great however I included the ampersand to mimic x amount of users ($users) simultaneously. The working example waits for wget to finish before moving on to the next and ends after x number URLs...
10,037
Posted By shadyuk
Random web page download wget script
Hi,

I've been attempting to create a script that downloads web pages at random intervals to mimic typical user usage. However I'm struggling to link $url to the URL list and thus wget complains...
9,686
Posted By shadyuk
Correct. ---------- Post updated 03-15-13 at...
Correct.

---------- Post updated 03-15-13 at 07:06 AM ---------- Previous update was 03-14-13 at 11:50 AM ----------

Thanks, works just fine.
9,686
Posted By shadyuk
Correct, column 4 in the sample input. However,...
Correct, column 4 in the sample input. However, it also applies to columns 8, 12, 16, 20, etc.
9,686
Posted By shadyuk
Thanks Corona. But as I said, there's many...
Thanks Corona. But as I said, there's many columns (way too many to paste here) and several of them have the format xxx/xxx, not just the last column. It just needs to ignore column 2 and change the...
9,686
Posted By shadyuk
The data has many columns so the script above...
The data has many columns so the script above searches for any columns with format xxx/xxx and then converts according to the calculations. It also avoids column 2.

I hope the following is...
9,686
Posted By shadyuk
Thanks Corona. That seems to work except that it...
Thanks Corona. That seems to work except that it also splits the date. How to amend so that it ignores column 2?
9,686
Posted By shadyuk
Thanks. I tried unix2dos as follow: unix2dos...
Thanks. I tried unix2dos as follow:

unix2dos -437 -o Test.csv

This seemed to add the CR/LF new line character. However the script still fails. I still have to open in Excel and save as CSV or...
9,686
Posted By shadyuk
[Solved] CSV to CSV MS-DOS
Hello,

I have the following script which converts some data in a CSV file from one format to another. However, I have to convert the CSV (Macintosh) file to CSV or CSV (MS-DOS) first else the...
4,078
Posted By shadyuk
Works, thanks.
Works, thanks.
4,078
Posted By shadyuk
Thanks Corona. However, it doesn't explain how to...
Thanks Corona. However, it doesn't explain how to download the file so that they go into their relevant directories. For instance (and assuming these files have failed on their first attempt):
...
4,078
Posted By shadyuk
Md5sum script
Hello,

I need to download multiple files from an FTP server but occasionally they arrive in error so I need to perform an integrity check. I've been attempting to write a bash script that does...
4,582
Posted By shadyuk
Ok, got it. That works as intended. No more...
Ok, got it. That works as intended. No more tweaking, scouts honour!!

Muchos gracias!!
Showing results 1 to 25 of 40

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