Search Results

Search: Posts Made By: baris35
218
Posted By baris35
For cycle, process order
Hello,
I am running a script under ubuntu 16.04
I have no problem with the script. My question is general algorithm of for file command.
I just need to know how for file in *.txt process works.
...
Forum: Web Development 09-17-2019
1,908
Posted By baris35
Hello Neo, As there were 20.000 files inside...
Hello Neo,
As there were 20.000 files inside each directory I have not shared the full list.
Now, I have found the problem.
When I need to list html files, I was typing like ls *.html which was...
Forum: Web Development 09-17-2019
1,908
Posted By baris35
Hello Neo, Both A & B directories have...
Hello Neo,
Both A & B directories have _index.html
As I need to display all files via Chrome, I moved index.html to _index.html earlier.

Thank you
Boris
Forum: Web Development 09-16-2019
1,908
Posted By baris35
Apache2 does not display files inside directory
Hello,
I have been running Ubuntu14.04 + apache2.
000-default.conf:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog...
1,387
Posted By baris35
Hello MadeInGermany, root@hostname was...
Hello MadeInGermany,
root@hostname was submitting email.
I uninstalled some softwares which are not in use anymore and removed messaging softwares like mail,mailx,


Kind regards
Boris
1,387
Posted By baris35
How to detect which process is run by what?
Hello,
I am running under ubuntu 14.04
Very long time ago, I set a script (ban.sh) to block ip addresses abusing my system which was not active.
I have not touched the server over six months or...
938
Posted By baris35
How to ratelimit for user in apache2?
Hello,
I am running ubuntu14.04
I am able to limit download speed for www-data but for a user, for example boris, somehow it's not working with low download speed.

Here is what I did:

adduser...
1,196
Posted By baris35
Pid file and process check
Hello,
I am running ubuntu14.04
What I am trying to do is restart a process with a shell when pid is dead.
I restored pid nr in a file and check with ps aux | grep -v grep | grep $(cat *.pid)| awk...
1,482
Posted By baris35
Hello, fdisk -l Output: Device ...
Hello,
fdisk -l
Output:
Device Start End Sectors Size Type
/dev/sda1 2048 1048575 1046528 511M EFI System
/dev/sda2 1048576 9435135 8386560 4G...
1,482
Posted By baris35
Hello Rudic, CPU is 100% and server is not...
Hello Rudic,
CPU is 100% and server is not accessible via ssh in normal boot mode.

The problem started after nfs installation. I received a warning message from authorities emphasizing that nfs...
1,482
Posted By baris35
How to fix and manage data in rescue mode?
Hello,
I am running ubuntu 14.04
My server has problems again. I need to manage system files in rescue mode, backup some files, edit /etc/crontab and rc.local files etc.

root@rescue:~# cat...
2,892
Posted By baris35
Delete everything after empty line in file
Hello,
I am trying to remove everything coming after empty line under ubuntu14.04.
How may I do it?

file:
aaa
020390
bb00id3
c03wisi

209dl
x092sia
0290s

I expect:
aaa
020390...
3,498
Posted By baris35
How to embed data instead of reading user input from an array?
Hello,
I am running under ubuntu1 14.04 and I have a script which is sending given process names to vanish so that I'd see less output when I run most popular tools like top etc in terminal window....
3,556
Posted By baris35
Sort by id value in every two rows
Hello,
I am running ubuntu 14.04. My purpose is to sort below file according to value of id even though it contains alphanumeric strings inside double quote. File is not tab separated. I am not sure...
203
Posted By baris35
Thank you Rudic, I had to change the files...
Thank you Rudic,
I had to change the files while testing but I will run as you leaded.


Kind regards
Boris
203
Posted By baris35
Grep from FileA, search in FileB, edit FileC > Output
Hello,
Similar question to my previous posts. I am sorry for the trouble...
Just checked my old threads but I can not implement any solution into this case..
My aim is to grab each line in fileA,...
205
Posted By baris35
Thank You All, I will also test your codes and...
Thank You All,
I will also test your codes and keep you posted.

Kind regards
Boris
205
Posted By baris35
Thank You Rudic, This one also works as...
Thank You Rudic,
This one also works as expected.

Kind regards
Boris
205
Posted By baris35
Grep string causes extra spaces
Hello,
I have an xml file and my aim is to grab each line in keywords file and search the string in another file.
When keyword is found in xml file,I expect the script to go to previous line in the...
202
Posted By baris35
Hello Rudic, Without testing, I can say that it...
Hello Rudic,
Without testing, I can say that it will not return any result because there should be http://% like this:
url = 'http://%Mr.Smith.Goes.to.Washington%.mkv';
Maybe I am wrong..

If...
202
Posted By baris35
Voila! Changed the last part with exact match...
Voila!
Changed the last part with exact match like shown below and no need to create a second query to grab video_id:
.....WHERE url = 'http://localhost/test/" $1 ".mkv';"}

What I still do not...
202
Posted By baris35
I think I've found the root cause. When I was...
I think I've found the root cause.
When I was about to post this thread, I supposed that the code was not grabbing video_id from related line as I received error. Now I see I have to change the...
202
Posted By baris35
Hello, When I run it with multiple files as you...
Hello,
When I run it with multiple files as you guided yesterday, output barisprep.sql seems like (just excerpted related field):
INSERT INTO video_series_files (id, video_id, file_type, protocol,...
275
Posted By baris35
Hello Pradeep, I have googled and found some ...
Hello Pradeep,
I have googled and found some python codes doing this task.
You might do the same but seems like unethical.

Kind regards
Boris
202
Posted By baris35
Hello Rudic, It gives: 658 Thank you ...
Hello Rudic,
It gives:
658

Thank you
Boris
Showing results 1 to 25 of 348

 

Featured Tech Videos

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