General :: Place A Shell Script With Tail -f In The Back Ground?

Oct 6, 2010

Following script name is 123.sh and I need to put this in the background if I do 123.sh -bg this will not bring me back to the prompt but echoes what ever I put (using echo hello >> /tmp/123) in to the /temp/123 file. the only way that I have found doing this is to do "nohup 123.sh &" to put this in to the background. Is this okay or is there any better way of doing this?

#!/bin/bash
# file name is 123.sh
tail -f /temp/123 | while read line

[code]...

View 6 Replies


ADVERTISEMENT

General :: How To Start A Program In Back Ground

Jul 28, 2011

I've tried searching it and everything I've seen posted on different sites didn't work.i have my program set up in vi.it runs the way it is supposed too but i need it to start in the back ground the program runs fine when running it in the fore ground but i need it to start up and run in the background.

View 3 Replies View Related

Red Hat :: Running Back Ground Jobs In Bash?

Jan 8, 2010

#!/bin/bash
jobid=$1
freq_count=$2

[code]...

View 2 Replies View Related

Ubuntu :: Themes - Desktop Back Ground Doesn't Change

Jan 1, 2011

i was facing some problems with themes in my os. i saw some really cool themes on gnomelook but when i downloaded and applied them, the desktop back ground doesnot change. only the colour of bars and cursors change.

View 9 Replies View Related

Ubuntu :: Black Back Ground Around Cairo Dock Icons Since The Kernel Update On 5-4?

May 5, 2010

I have a black back ground around my Cairo Dock icons since the kernel update on 5-4. can anyone please tell me how to remove this.

View 1 Replies View Related

General :: Write A Shell Script Which Can Ready Content Of The Folder And Place Files On Remote FTP Server?

May 9, 2011

I need to write a shell script which can ready content of the folder and place files on remote FTP server. I need to make sure that a file that is already placed on remote FTP server is not attempted second time. The file names will be something like Records-2011-05-09. The files will be generated by MySQL every hour.

View 7 Replies View Related

Security :: Shell Login Tripwire - Optimal Place?

Jul 11, 2010

I have disabled root login in my remote shell and I have a pretty strong password. I am not happy though. I want to increase security. I've been thinking about installing some basic tripwire rig, like say, send myself an email every time I (or anyone) log in. My questions:

- What kind of data would be useful to be sent in that email? Anything else besides "user so-and-so logged in at {date and time}"?

- How would I achieve that? Is it enough to include it in .tcshrc (because my shell is tcsh)? Should I add it to other shells as well (.bashrc, .csh etc.) even though nobody uses the other shells? Is it better placed in some other file, like .login? What is the optimal place?

- Would that be enough? Can I make that whole idea more secure in any way?

View 11 Replies View Related

General :: Bash - Get ' Quote ` Back-tic Through The Shell Into Sed?

Aug 3, 2011

In linux how do I to get the ascii decimal/hex/oct code from a char or a ascii char from a decimal/hex/oct code. I see from the gnu sed user manual that I can use the d# o# x# to specify a character but I am not sure how to use that. If some one has a better way to get the the ` and ' chars through I want to sed with the backtick '`' character and ''' single quote character.

sed '/`/p'

these don't work

sed '/'/p'
sed '/`/p'

View 3 Replies View Related

General :: Shell Script To Back Up A Postgresql Database?

Jun 4, 2010

I need a shell script to back up and restore a postgresql database.

View 1 Replies View Related

General :: Change To Shell Type That From SH To TCH And Back Again And Lost Coloring Of File System

Nov 18, 2010

after i made the change to my shell type, that from SH to TCH, and back again, i lost my coloring for my file system, if you know what i mean, folders always come in blue, and devices in yellow hope you understand? now everything i do can't seem to differentiated between files colors anymore.

View 7 Replies View Related

General :: How To Use Tail -f With Sound

May 8, 2011

I am trying to use tail -f and play a sound everytime a new line appears. I tried this: for i in tail -f myFile; do aplay alert.wav; done; Which kinda worked, the output is:

Playing WAVE 'alert.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
Playing WAVE 'alert.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
Playing WAVE 'alert.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono

But after 3 times it stops, and I would like to print the tail -f result and not the aplay result. How could I achieve that?

View 1 Replies View Related

General :: Tail -f Not Tracking File Changes?

Jun 20, 2010

I was recently looking into using tail -f to monitor some text files like so: tail -f /var/sometext However, when I did some testing, it doesn't seem to work. What I did was I created a new file and ran: tail -f /home/name/text Then, I opened the log in vim and did some editing, saved it, and it seems that tail is not "seeing" the change.

The weird thing is, running echo "hello" >> /home/name/text seems to work fine (tail sees the change). I read somewhere this has something to do with file descriptors and new inodes being created when saving a file.

View 3 Replies View Related

General :: Equivalent Of Tail/less - Follow-name Under OS X

Jul 28, 2011

I need to tail -f a log file that is rotated.

This is the exact same issue as the one here, but on OS X:

Why does less tail mode stop working?

So how can I constantly track a file whose inode might change under OS X?

View 1 Replies View Related

General :: Tail File If The Name Is Changeable?

Jan 1, 2010

am facing a problem with tailing a log file. Logs of application located in one folder:applog_20100101_0200.log <--log until 2 am january 1applog_20100101_0456.log <--log until 4:56 amapplog.log <-- current logApplication can change log when ever it wants to. I need to monitor this log, what i do:tail -f applog.logBut when app changes log my tail just stops. How can i tail applog.log all the time with out stops?

View 7 Replies View Related

General :: Tail Command Does Not Refresh All The Time?

Oct 26, 2010

I am running a script with nohup and this generates a lot of logs.

In order to view the log I use tail -f nohup.out

The problem is that the info supplied by this command is not always the latest//sometimes I need to use the command again order to view the latest info added to the nohup.out file.

View 3 Replies View Related

General :: Tail The Latest Log File In One Command Line?

Feb 1, 2010

I want to tail the latest log file in one command line. I dont know what command/option to use for the same.

View 5 Replies View Related

General :: Tail Command Syntax To Print A Sequence Of Line ?

Dec 21, 2010

How to print a sequence of line say line number 10 to 20 of a 50 line file ?

View 6 Replies View Related

Ubuntu :: Learning From Ground Up

Jan 24, 2010

I am extremely interested in learning more than just the "basics" of Linux. I can install, mount, the very very basics etc. But what I want to do, is learn how to do all this from the shell, while the GUI is nice to surf the web and music,.I want to be able to control my machine. I want a beginners book not on how to install linux, but how to administer it. Something like an idiots book, get myself a good foundation before moving on up.

View 4 Replies View Related

Ubuntu Servers :: How To Setup And Get Samba Off Ground

Jan 7, 2011

I want to setup a file server using Ubuntu, The first thing I want to get off the ground is just simple file shares, is Windows 7 still having problems with Samba or has this been fixed? Secondly does anyone have a plain noob freindly guide on how to setup and get Samba off the ground

View 9 Replies View Related

OpenSUSE Install :: System Resets And Just Boots Back To The EFI Shell Again

Oct 13, 2010

I am trying to install OpenSuse 11.3 x64 via EFI. I successfully performed a Windows 7 install and I'm trying to do the same thing with OpenSuse now. My system boots into the EFI shell. I can cd into the /efi/boot/ folder and run bootx64.efi. Immediately after I press enter I am presented with an ELILO boot: prompt which either eventually times out and continues or I can press enter and have it continue. Either way my system resets and just boots back to the EFI shell again.

Running bootx64.efi worked for starting the Windows 7 setup but it doesn't appear to be working with OpenSuse. Is this a broken feature or am I doing something wrong?

View 2 Replies View Related

Software :: Running A Script On Front-ground On Startup?

Mar 26, 2010

I would like to know how to run a BASH script on front-ground on startup of my machine.I've installed a Damn Small Linux (DSL) on a old computer and I would like to run a script at stratup, in command-line mode. So, I've added my script in /etc/rc3.d and it's working fine except 1 thing : I would like it does not execute on background.In facts, I would like the script take the hand immediatelly after login (my DSL is automatically login in with the DSLuser user).The aim is that the script take the controle of the computer until it quit (the script is launching an application, wait for its stop and shutting down the PC).

View 3 Replies View Related

General :: Using Centos 4 In Place Of RHEL 4?

Jun 12, 2010

I have a software program that when you try to install it on Centos it returns "This programs requires RHEL 4" Is there a work around to get the software to use the Centos software the same as it would RHEL 4?

View 6 Replies View Related

General :: Get The Wireless Networking In Place?

Mar 12, 2010

I have just installed slackware 13 on an old machine I am bringing back into use. As I have a spare Linksys wmp54g card I would like to try to get the wireless networking in place.From reading the forum the relevant advice seems to be fairly old (2004-2006). I wonder if anyone can advise me what the current steps would be?

View 3 Replies View Related

General :: Where To Place Xrandr Configuration

Aug 8, 2011

I have migrtaed from Arch, my first experience with linux for the past 2 months, to Debian and i'm currently setting up my system. I have a X61s Thinkpad with a cracked screen which i use with the ultrabase with an external monitor and keyboard. The monitor requires me to use fbset on console and xrandr for a graphical enviroment Whilst i was using Arch i used 'startx' to access openbox and placed my xrandr configuration in ~/.xinitrc but with debian i have wanted to use a login manager, Slim.

Because i am using KMS for my intel based system i don't have an xorg.conf and because i am using slim i am not using ~/.xinitrc I read somwhere that creating an ~/.xprofile file would solve this but i have not had any luck. So i am wondering where would be the best place to put the xrandr configuration?

View 1 Replies View Related

Ubuntu :: Tail Logs On 11.04

Jun 6, 2011

I have installed Ubuntu 11.04 over the weekend and wanted to tail the logs whilst doing so stuff. When I browsed to the folder after getting an error trying to tail, I noticed that the messages file does not exist.

Usually use tail -f /var/log/messages

View 3 Replies View Related

General :: $HOME/.bashrc Disabled When User Shell Is 'rbash' (restricted Shell)?

Jun 15, 2011

MACHINE: HP Proliant DL260G5OS: SLES 11 SP1kernel: Linux xserver 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/LinuxIt is used as remote xserver in a LAN.I have configured /usr/lib/restricted/bin/.rbashrc with some environment variables but when the users logon in the system finally is executed $HOME/.bashrc and some environment vars are overwritten.

View 2 Replies View Related

General :: Primary Point Of Converting Dll To Lib In First Place

Apr 15, 2010

I've been looking for a way to run windows-only vst plugins nativley on linux as well as to find a linux driver for my 1394 audio interface with little luck; I would like to do so without relying on wine, and have come across an idea to work out after stumbling on a utility that converts dll to lib (called dll2lib). The idea would be to convert the dll's for a proprietary fw audio dev and dependent MS libraries and manually change what's needed to make it compatible with linux env. is this possible; will I be able to achieve source code from this? if not, what is the primary point of converting a dll to lib in the first place.

View 2 Replies View Related

General :: If X Window System Is Not Used What Takes It's Place

Mar 22, 2011

If Linux is not in GUI mode, what application handles input and output?

View 6 Replies View Related

General :: Get UserName In Place Of UID In The Process Check?

Apr 17, 2010

I add a user in my linux machine using the command 'useradd' as shown below. # /usr/sbin/useradd -c "Non Root User" -d "/home/testUser" -g root testUser "/etc/passwd" file shows that user created with uid '517'

cat /etc/passwd
ot:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin

[code]...

View 1 Replies View Related

General :: Best Place To Start To Learn System?

Jan 24, 2011

I am starting to dive into Linux after being a Microsoft geek for years. Where is the best place to start?

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved