Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: robertkwild
701
Posted By robertkwild
Create a desktop launcher for programs
hi all,

i want to create a desktop launcher for multiple programs and save it to everyones users desktop

i want to create a launcher panel with multiple icons for programs like firefox,...
2,976
Posted By robertkwild
Set hard block limit for user using quota
hi all,

i have installed quota on my centos 7 machine and its what im after (setting size limit on users, so they cant fill the hard drive)

i want to now make this part of my create user...
Forum: Programming 11-16-2017
1,100
Posted By robertkwild
Hi Robin yes im confused, what do you mean...
Hi Robin yes im confused, what do you mean sudo_user

do you mean for every command i have in my script put sudo infront of it

then i thought instead of putting sudo infront of every command...
Forum: Programming 11-16-2017
1,100
Posted By robertkwild
i just want the user to run this simple script...
i just want the user to run this simple script that i made to create an ftp user account with a home directpry and i thought a normal user cannot add directorys and make a user chmod chown etc etc - ...
Forum: Programming 11-16-2017
1,100
Posted By robertkwild
thanks Don, i will try out your script Robin...
thanks Don, i will try out your script

Robin - yes i want anyone to run the script and if they are not root it will log in as root or sudo up to root level and then it will run the rest of the...
Forum: Programming 11-15-2017
1,100
Posted By robertkwild
thanks jim instead of -ne 0 can i use !...
thanks jim

instead of -ne 0 can i use ! instead

also the reason i want to do su instead of sudo is because i just want to run the script as root when the user runs it from there user enviroment
Forum: Programming 11-15-2017
1,100
Posted By robertkwild
Running a script as root in the script
hi all,

i think i have got the solution for this but want to run it past you guys first

when i run a script sometimes its necassary to sudo to root so it can create users, chmod etc etc, the...
Forum: Programming 10-04-2017
2,201
Posted By robertkwild
thanks rbatte1, i will try xargs
thanks rbatte1, i will try xargs
Forum: Programming 09-28-2017
2,201
Posted By robertkwild
sorry your right i dont want to append so i will...
sorry your right i dont want to append so i will be using >
Forum: Programming 09-28-2017
2,201
Posted By robertkwild
Script to monitor progress of find/exec command
hi all,

i want to monitor the progress of a find and exec command, this is the code i use -

find . -type f -exec md5sum {} \; >> /md5sums/file.txt

this command works and produces a text file...
Forum: Programming 09-22-2017
2,284
Posted By robertkwild
sorted it, yum remove rsync ...
sorted it,

yum remove rsync


https://download.samba.org/pub/rsync/rsync-3.1.2.tar.gz

(https://download.samba.org/pub/rsync/rsync-3.1.2.tar.gz)

installed it by untarring it cd'd into the...
Forum: Programming 09-21-2017
2,284
Posted By robertkwild
i have seen this - bash - How to add a...
i have seen this -

bash - How to add a progress bar to a shell script? - Stack Overflow...
Forum: Programming 09-20-2017
2,284
Posted By robertkwild
just thought of another idea - il get the...
just thought of another idea -

il get the size of the source path -

du -s /source_path/

then i will start the copy -

cp -r /source_path/ /destination_path/

while im copying i will...
Forum: Programming 09-15-2017
2,284
Posted By robertkwild
32gigs Its my data drive not o/s drive so...
32gigs

Its my data drive not o/s drive so its Sdb single spindle at 72rpm
Forum: Programming 09-15-2017
2,284
Posted By robertkwild
smashed it - [root@robw-linux data]# tar -c...
smashed it -

[root@robw-linux data]# tar -c call_the_midwife_7_1708/ | pv -lep -s 32455212 | tar -x -C /mnt/local/data/new/
[=> ] 2% ETA 2:34:31

and to find the dir size i did -

du -s...
Forum: Programming 09-14-2017
2,284
Posted By robertkwild
Program or bash script to see total progress of copy
hi all,

i want a program or to make a bash script to find out the total ETA/percent (would be nice aswell a progress bar) of a copy recursive command

so lets say i do -

cp -r /source_folder/...
Forum: Programming 07-20-2017
5,876
Posted By robertkwild
wow that script looks hard
wow that script looks hard
Forum: Programming 07-17-2017
5,876
Posted By robertkwild
Html form to submit data to bash script
hi all,

im going to design a web html form so users can input what username and password they want to make the ftp account, once they enter in a username and password they click on the submit...
Forum: Programming 07-17-2017
831
Posted By robertkwild
going to end this thread and start a new one as...
going to end this thread and start a new one as im not going to do it this way no more
Forum: Programming 07-14-2017
831
Posted By robertkwild
ok scrap this idea, thought of another better way...
ok scrap this idea, thought of another better way


im going to create a html form for this on my sftp server, so install apache on it aswell


its going to look like this -



username:...
Forum: Programming 07-13-2017
831
Posted By robertkwild
yes sorry i meant sftp@molinare.co.uk the...
yes sorry i meant sftp@molinare.co.uk

the sftp server i will make it into a smtp server aswell ie install postfix on it

sorry i dont get your code, what do you mean by that?
Forum: Programming 07-13-2017
831
Posted By robertkwild
Users to submit email for ftp creation
hi all,

created a bash script to create an ftp account, its here -


#!/bin/bash

dir=/mnt/sftp
group=sftp_users

echo "Enter UserName:"
read user

if id $user ; then
...
Forum: Programming 06-02-2017
1,324
Posted By robertkwild
sorry i removed as i posted the above, my bad
sorry i removed as i posted the above, my bad
Forum: Programming 05-31-2017
824
Posted By robertkwild
thanks, it works but that command doesnt make...
thanks, it works but that command doesnt make sense,

the command to do manually is -

filename.tar -tvfwhy have you put "$base" after the tvf

edit - sorry i had a dumb moment, i figured it...
Forum: Programming 05-31-2017
824
Posted By robertkwild
Creating for loop for tar -tvf doesnt work
hi all,

i have created a for loop, it looks like this -


#!/bin/bash
cd /mnt/local/data/tars
for tar in *
do

base=$(basename "$tar")

"$base" -tvf >>...
Showing results 1 to 25 of 84

 

Featured Tech Videos

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