Search found 5 matches

by emacsx
2020/02/07 14:35:33
Forum: CentOS 6 - General Support
Topic: Linux Command to Copy Multiple Files?
Replies: 5
Views: 266

Re: Linux Command to Copy Multiple Files?

MartinR wrote:
2020/02/07 12:18:05
Here's your starter:

Code: Select all

for i in F20161368.docx F20161981.docx F20161983.docx
do
  cp rubric.docx $i
done
Thanks, but the F20161368.docx F20161981.docx F20161983.docx files do not exist and need to be created as a copy of rubric.docx
by emacsx
2020/02/07 12:11:49
Forum: CentOS 6 - General Support
Topic: Linux Command to Copy Multiple Files?
Replies: 5
Views: 266

Linux Command to Copy Multiple Files?

I want to copy a rubric.docx file to multiple files with names such as F20161368.docx, F20161981.docx, F20161983.docx... from a list of names in a MS Excel or text file.

Please help with a command or script to do that.
by emacsx
2016/02/07 05:09:37
Forum: CentOS 5 - General Support
Topic: Adding multiple users and setting vnc passwords?
Replies: 2
Views: 8109

How to write a script for setting vnc passwords for multiple

I managed to get the user add script work, but how to write the following commands in a script for setting vnc password for multiple users? I need to read a text file (user_list.txt) containing list of user, i.e. one user per line and user name and password separated by a space. # su - USER1 $ vncpa...
by emacsx
2016/02/05 04:40:45
Forum: CentOS 5 - General Support
Topic: How to start vnc server for specific users on specific day?
Replies: 0
Views: 2084

How to start vnc server for specific users on specific day?

I have an issue that there are total of 40 users for which I have to start vnc server, but only first 20 should get access on Monday and only the rest of 20 should have access on Tuesday. Right now I have to manually edit the /etc/sysconfig/vncservers file each day by commenting out the users which ...
by emacsx
2016/02/05 04:39:17
Forum: CentOS 5 - General Support
Topic: Adding multiple users and setting vnc passwords?
Replies: 2
Views: 8109

Adding multiple users and setting vnc passwords?

I can add users using the following commands without specifying a group # useradd USER1 # passwd USER1 password: ****** Retype password: password: ****** but if I use the following script with a text file (user_list.txt) containing list of user, i.e. one user per line and user name and password sepa...

Go to advanced search