10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello i am having an issue with bash script and this is the code
now=$(cat hosts1.txt | awk '{print $2;}')
while read n ;do
ssh root@$now 'useradd test1; echo -e "test1\ntest1" | passwd test1 && echo "test1 ALL=(ALL:ALL) ALL" >> /etc/sudoers'
When i execute only part with cat, it... (8 Replies)
Discussion started by: tomislav91
8 Replies
2. UNIX for Dummies Questions & Answers
Hi everyone
I have a problem with my script
If I try directly this command
/usr/bin/nice -n 19 mysqldump -u root --password="******" wiki_schneider -c | nice -n 19 gzip -9 > /point_de_montage/$(date '+%Y%m%d')-wiki-db.sql.gz
It works
But if I simply add this command in a script and... (8 Replies)
Discussion started by: picemma
8 Replies
3. Shell Programming and Scripting
Hi All,
I am trying to select 30 days older files under current directory ,but not from subdirectory using below command.
find <Dir> -type f -mtime + 30
This command selecting all the files from current directory and also from sub directory .
I read some documention through internet ,... (1 Reply)
Discussion started by: kommineni
1 Replies
4. Shell Programming and Scripting
Need help awk out information from /etc/exports :wall:
cat /etc/exports
/%filesystem -sec=sys:krb5p:krb5i:krb5:dh,rw,access=server1:server2:server3:server(n+1)
I wanted to edit out (-sec ......,access=) remove the colons and replace is with spaces
output
/%filesystem server1 server2... (2 Replies)
Discussion started by: wittyresponses6
2 Replies
5. AIX
HI guys...
Recently I have a request to share an AIX filesystem to a Windows client.
Unable to use Samba as this is a production server, and IBM Support does ont support as it is a Third Party application.
Not wanting to take the risk, I opt for NFS..
However, reading the pSeries System... (5 Replies)
Discussion started by: mushr00m
5 Replies
6. Shell Programming and Scripting
Hello.
I would like to ask your help regarding the cp command. We are using a cp command to create a back-up copy of our file but to no avail. It's just not working. We already checked the file and directory permissions and all seems correct.
We have a script (ftp.script) which calls on... (1 Reply)
Discussion started by: udelalv
1 Replies
7. UNIX for Advanced & Expert Users
Dear Friends,
I am using Linux system where one nfs share has been configured with rw,sync options. But when I use to check with exportfs -v command it does not show me the sync option I enabled in /etc/exports
My doubt is whether I need to use any other command or other options to see... (2 Replies)
Discussion started by: Tlogine
2 Replies
8. Shell Programming and Scripting
Hi everyone,
when executing this command in unix:
echo "WM7 Fatal Alerts:", $(cat query1.txt) > a.csvIt works fine, but running this command in a shell script gives an error saying that there's a syntax error.
here is content of my script:
tdbsrvr$ vi hc.sh
"hc.sh" 22 lines, 509... (4 Replies)
Discussion started by: 4dirk1
4 Replies
9. AIX
Hi All I need help here. Some body familiar with the exportfs
For AIX5.1, i has exported a /ietelerad/TEST 10.197.6.78 for sharing.
At NFS server.
$ showmount -e
export list for CS72:
/ietelerad/TEST 10.197.6.78
$
At NFS Client
mount: 1831-011 access denied for... (4 Replies)
Discussion started by: simka
4 Replies
10. UNIX for Dummies Questions & Answers
i need some help on remote file copyieng.the queeries are:
1:>
m working on a machine say(abc) and i want to copy a directory(yes a directory) from a remote machine.
so what would be the command.
2:>
do in need to login on the source machine from where i want to copy a directory.
3:>
is it... (0 Replies)
Discussion started by: mxms755
0 Replies