Shell Script Run in Background

rajeshkumar created the topic: shell script run in background
I wanted to run a particular shell program in a background and it should not be dependent on terminal session of putty or telnet?

Just finding solution?
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

rajeshkumar replied the topic: Re:shell script run in background
i found 2 following solution for this..
./myscript&

You can prevent the signal from getting to the program by starting it like this:
nohup command &
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

How to perl script to extract data

mnanjala created the topic: how to perl script to extract data

Hi All,

Below are the contents in the test.txt file

id name adress
1 rajesh pune
2 pravin puttur
3 bani banglore

Now can anybody write perl script to extract data based on id ?

Example if id is 1 it should print rajesh from pune and so on

Thanks
Pravin

Tagged :

Command to start SMTP

scmuser created the topic: command to start SMTP
Hi…
To start SMTP service use the below command

#/etc/init.d/sendmail start

To stop the SMTP service use the below command

#/etc/init.d/sendmail stop

To know the status of the SMTP service use the below command

#/etc/init.d/sendmail status

Tagged :

/bin/tar: Removing leading `/’ from member names

scmuser created the topic: /bin/tar: Removing leading `/’ from member names
Hi,

When i run following script i get a error somthing like
/bin/tar: Removing leading `/’ from member names

Script link: www.faqs.org/docs/securing/chap29sec306.html

Tagged :

How to Restore The Dump File using Shell Scripting

scmuser created the topic: how to restore the dump file using shell scripting

I have created a script file to dump the application files using the following script

Code
=============
#!/bin/bash
#Full Day Backup Script
#application folders backup

now=$(date +”%d-%m-%Y”)
#use 1 instead of 0 which is incremental backup
dump -0f $now /var/www/html/*
=============

using this we can successfully dumped the application files.

Now i want to restore the dumpfile

How can i restore using shell script?

please help

Thanx in advance

Tagged :

Starting sonar issues in linux

scmuser created the topic: Starting sonar issues in linux
Hi, when I am starttign a sonar, I am getting following error…
Any help?

Starting sonar..../sonar.sh: line 490: /usr/local/sonar-2.2/bin/linux-x86-64/./wrapper: cannot execute binary file

Tagged :

How to access windows share folder from linux

scmuser created the topic: How to access windows share folder from linux

Hi,

Can you tell me How to access windows share folder from linux?

Reagrs,
scm

scmuser replied the topic: Re:How to access windows share folder from linux

I found solution 1:

Press Alt+f2 and put following shared link such as smb://10.4.40.88/Share in the text box and Run…

scmuser replied the topic: Re:How to access windows share folder from linux

To test whether Samba is installed or not…

type following command…
testparm /etc/samba/smb.conf

Testparm will parse your configuration file and report any unknown parameters or incorrect syntax. It also performs a check for common misconfigurations and will issue a warning if one is found.

chidamla replied the topic: Re:How to access windows share folder from linux
Samba is one method.

Another method is to execute an ftp service in any Windows server and configure the Windows share drive as the home folder in the ftp service. Connect Linux server to the ftp service to transfer files. This set-up is worth it when there needs to be frequent transfer of files.

For one time transfers use, winscp tools.

Tagged :

Shell Script to Find All New Files Added

scmuser created the topic: shell script to find all new files added

Hi,

i am looking for a shell script to find all new files added or modified after a certain date & Time??

Any help?

mnanjala replied the topic: Re:shell script to find all new files added
This should solve the problem

find . -type f -mtime -7 -print

Here,
* -mmin n (modification time in minutes)
* -mtime n (modification time in days)
* -newer file (modification time newer than modification time of file)
* -daystart (adjust start time from current time to start of day)
* Plus alternatives for access time and ‘change’ or ‘create’ time.

Or thinkikng

touch can be used

Tagged :

Shell Script Program 1

scmuser created the topic: shell script program 1

Device a script that takes a filename as argument ( which must exist in the current directory) and locates from your home directory tree all path names of its links. The list should be mailed to self

Tagged :