9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hello guys
i need a script to automatically backup a whole directory in linux like
/var/www
and the whole sql db
and upload to an ftp server daily (as a cron job)
is there something like this? I read about rsync but I don't know if it will suit this. (6 Replies)
Discussion started by: galapagos8000
6 Replies
2. Shell Programming and Scripting
Hi All,
I am writing a shell script.
#!/bin/bash
cat /etc/hosts
mkdir -p /var/tmp
mount 113.123.35.37:/vol/vol615/syb /var/tmp
In above script I am trying to add below predefined script/command (/var/tmp/db_tools)
This command in turn ask for user input, which will be always option... (17 Replies)
Discussion started by: madhur.baharani
17 Replies
3. Shell Programming and Scripting
It doesn't have effect in script but it works on the terminal
root@server:/opt/kvm/usecases/logs# alias echo='echo -e'
root@server:/opt/kvm/usecases/logs# echo "xxxx\n"
xxxx
root@server:/opt/kvm/usecases/logs# cat xx.sh
#!/bin/bash
alias echo='echo -n'
echo "sssf \n"
... (3 Replies)
Discussion started by: yanglei_fage
3 Replies
4. Shell Programming and Scripting
Hi,
I have created a shell script which is used by many users to change their password/unlock, etc., via menu. There is possibility users just close the putty window without proper exit from menu.
I want a solution so that if anybody forgets to stop that session, it should kill automatically... (9 Replies)
Discussion started by: prashant2507198
9 Replies
5. UNIX for Dummies Questions & Answers
If one:
$ find -name 'some expression' -type f > newfile
and then subsequently wants to create an alias file from each pathname the find command retrieved and the > placed within 'newfile', how would one do this? Ideally, the newly created alias files would all be in one directory.
I am... (3 Replies)
Discussion started by: Alexander4444
3 Replies
6. Shell Programming and Scripting
Hi all,
Could any one tell me how to use aliases in a script i have a large command which launches an application. I want to use alias in the script because i call the application many time in the shell script.
Thanks
Firestar. (5 Replies)
Discussion started by: firestar
5 Replies
7. Windows & DOS: Issues & Discussions
can any one help me for auto login bat file from windows to unix,to check the server daily..
Thanks
Mohan (1 Reply)
Discussion started by: mohankasi
1 Replies
8. UNIX for Advanced & Expert Users
How can I embed alias command inside the unix script?
Script:
echo "...."
...
...
alias aa=/usr/bin/telnet
...
...The above script is not working.
If I type aa hostname in the command prompt 'TELNET' terminal is not opening.
Regards,... (2 Replies)
Discussion started by: sharif
2 Replies
9. UNIX for Dummies Questions & Answers
Hello All!
I am looking to build a monitoring script.
The script should always run as a system service of some type and should always check that a PHP script is running.
Maybe there is a way to assign a PHP script to a certain PID so that the monitor script that check for the PID in top... (4 Replies)
Discussion started by: elDeuce
4 Replies