7 FAQ tagged "shell_script"
Viewing 1-7 of 7 FAQ -- How to: Run a shell script with nohup command :
Q. I’d like to run a command or shell script immune to hangups, with output to a non-tty or file. How do I use nohup command to run script called ~/utils/backup upload?
A. nohup is a Unix command that is used to run another command while suppressing the action of the HUP (hangup) signal, enabling the [...] - Ubuntu Linux Backup MySQL server Shell Script :
Q. I’m new to Linux and I’ve dedicated VPS server running Ubuntu Linux. I’m using CMS software and MySQL act as database server. Can you explain how can I backup all mysql server databases to ftp server IP address called 10.1.5.2?
A. You can use mysqldump command to backup database. The mysqldump client [...] - FreeBSD send mail with attachments from command line / shell prompt :
Q. I need to send few reports everyday as a mail attachment. I’m using FreeBSD 6.2 server. How do I send mail from a command line or a shell script?
A. You can easily send email attachment using mutt mail client. It works from command line or a shell prompt. However mutt is not installed by [...] - How to run the .sh file in shell script in Linux / UNIX :
Q. I’ve downloaded a software for Linux from net. There is a file called install.sh. How do I run .sh file to install the software?
A. .sh file is nothing but a shell script. The easiest way to run .sh shell script in Linux is as follows:
sh file.sh
bash file.sh
Another option is set executable permission using [...] - How to backup the remote files in Linux / UNIX :
Q. How do I make remote backups under Linux? I’ve CentOS 5 Linux server located in remote data center and I’d like to backup it to local or another server?
A. Both Linux / UNIX come with handy tools to make secure remote backups. You can use tool called rsync for automating remote backups of your [...] - Shell script put multiple line comment :
Q. I’d like to use multiline comments under shell script. Under C / C++ I can use format
/*
my c code
comment # 2
blah
*/
How do I put multi line comment under a shell script?
A. By default shell script can be commented out prefixing # character for example:
# my comment
For multilinecomment use
# my comment 1
# my comment [...] - Shell script to get the time difference :
Q. I am able to write PHP or Perl script where I can find out time difference between script executions. Now I have .shtml file that is nothing but a shell script outputting some data to browser. What I want is time difference or time it took to execute a script. How do I write [...]
Viewing 1-7 of 7 FAQ - ( see all popular tags )


Recent Comments
Today ~ 3 Comments
Today ~ 57 Comments
Yesterday ~ 9 Comments
Yesterday ~ 7 Comments
Yesterday ~ 1 Comment