General :: Converting A Script Into A Service?
Jan 14, 2011How to convert a user written script into a service in linux?
View 1 RepliesHow to convert a user written script into a service in linux?
View 1 Replieswill the command service httpd restart the apache service if i enable httpsd service in graphical mode
View 12 Replies View RelatedI try to convert a doc file to a pdf file with the linux bash. I tried different ways like jodconverter, ghostscript, postscript and so on, but all didn't work as espected. Additionally I can say that I have only the bash.
View 1 Replies View Relatedi want to convert kb to mb and i'm wanted to use bash. if i use
"cat /proc/meminfo | grep MemTotal"
will only display in kb and i want to display it in mb.. and i want it to display like this
MemTotal : 250 mb
I've mostly mp4/flv media files,i need to convert them to mp3 to put in my mp3 player but at the same time i like to adjust the mp3 bitrate to save space and maintain quality sometimes. How do i actually do that in Linux. Is there any GUI program that performs the job for me quickly ?
View 14 Replies View RelatedI am running Server 10. I have a requirement to perform an action before the MySQL service starts, and perform another action after MySQL service stops.
I found the init script for MySQL under /etc/init/mysql.conf. I added my thing to the pre-start script there and works fine.
I am having trouble finding the script that stops the server so I can modify.
I couldn't really decide where this should be posted, but this is the most general of the forums. Anyway, I've been playing a wargame on intruded.net in which some of the challenges require me to pass hexvalues into the programs as character values. All is well with this, and usually I would use the shell to pass it in, but most of these programs use the gets() method to get my input.
Here comes the problem... The other day I was using my desktop which runs slackware 64 13.1 to do these challenges. My method was to use "echo -e 'xefxbexadxde'" to print them to the shell's standard output and then highlight and copy the resulting values to paste to the program. This works just fine on slackware, but when I repeated the same processes on Ubuntu 64 10.04 (which runs on my laptop) the 'xde' always turns up to be 'x00'. Then I tried some other levels with similar responses, not all the hex values convert to the correct ASCII characters.
I understand that .tar.gz and .tgz are equivalent to each other.
I did some checking as alway online. I am however stuck how to you make files with a tar.gz extenstion become .tgz. In the case of it being a compressed file is there a right and wrong way of doing this.
it seems that I always encounter things slightly off the beaten path, against my less then optimal knowledge of the man pages.
converting the ntfs to ext3.
View 9 Replies View RelatedI am an activist. I am becoming concerned with security on line because I have posted videos exposing SERIOUS corruption within the government at all levels. With all the recent claims of executive authority in the name of cyber security and govt eavesdropping I am interested in finding a more secure op sys. Windows is to vulnerable. I have an HP7845 Sound Blaster 64 Sound card. Radeon 9800 video card. I have a large volume of videos and media/research reports I cant afford to lose. How easy is the conversion? And also concerned with software. Will programs work the same or at all?Is my equipment even compatible with other opsystems. Is there a risk of glitches that would curtail my efforts after attempting the change. I KNOW NOTHING about other systems hell I can barely run XP. However I would hate to lose files or go through a months long debugging venture.
View 2 Replies View Relatedi have downloaded and installed linux ubuntu onto my hp laptop. now my account in linux does not show my files etc on my harddrive which have obviously been created by windows.how do i transfer/see them in linux?interested in learning but no the best at computer language
View 4 Replies View Relatedi wanna covert script to C code or any other method to embed this script in C code, script link [URL]
View 1 Replies View RelatedHow to convert a .flv file to .mp3 file? (Extracting only the sound)
View 7 Replies View RelatedSimilarly to this question:Convert a PDF to greyscale on the command line in FLOSS?I have a PDF-document and want to convert it to pure black and white. So I want to discard halftones. To convert to grayscale with ghostscript I can use this command:
gs
-sOutputFile=output.PDF
-sDEVICE=pdfwrite
[code]....
I need to convert a VHD file (Hyper-V VM) to the Linux raw format. Is there a tool which can do this which is graphical?
View 2 Replies View RelatedI have a CentOS 5.6 box and was wondering if there are any tools for Linux that can convert a Microsoft Word document to a TIFF file?
View 2 Replies View RelatedI need to convert OS X apps to OTF or TTF. Something usable in both Linux and Windows.
Is there any way to do this via the command line, or any app for this?
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 Relatedi can smb in centos 5 and i run service smb restart, it shows :smb: unrecognized service..... i run rpm -qa |grep samba,it shows
samba-common-3.0.33-3.7.el5
samba-client-3.0.33-3.7.el5
.....
I need a way to batch convert 720p video files from avc1 to xvid in Ubuntu 10.04. I'm not terribly concerned about file size, but I do wish to retain the picture quality as much as possible. I believe the audio is encoded as aac, which is fine for my purposes.
What would be the best and easiest way to do this? I've tried using Handbrake. During my first attempt, I had it using ffmpeg to convert to MPEG-4, but that just gave me a super-low quality video at twice the file size. Trying h.264 now, so we'll see how that works out. But just in case it doesn't pan out so well, what other ways do you recommend?
I was thinking I'd write a bash script to reencode the files one by one, but the problem is that I have very little knowledge about codecs and containers and whatnot - so I wouldn't know what parameters I would pass ffmpeg/mencoder.
I thought this question's best category would be in the newbie sectionBasically I have a C code, (for simplicity is only prints a few lines), called printx.c that I would like to convert into a binary file so whenever I have to type "printx" in the command line it would execute the programofcourse gcc will give me a binary file if I do a "gcc printx.c", but even the output file (e.g. print.outwould have to be executed following manner./print.outI only ask, because I notice programs like mailx (which is written in C) is a binary file that could be run in this manner (at least that's what I notice on my ubuntu distro)
View 3 Replies View RelatedI need to manually convert an string ( like with echo ) to a DES crypt format to be inserted inside a /etc/shadow file, does anybody knows how can I do that?
Maybe there are some little tool that could handle that operation, well.. I don't know, hope someone can give me a hint on that.
I have movies downloaded onto my Linux based system and want to convert them so I can burn them to ddvd so I can watch from my couch. I have found a couple for windows but not Linux. By the way I running Mint 8 -X64.
View 5 Replies View RelatedI need to start a service before network service How to?
View 1 Replies View RelatedI'm rather new to linux, and I have a dedi server. I know how to browse, install, remove etc, all the basics needed to use it. I've installed flvtool2, memcoder and ffmpeg, and at the moment im converting avi files in to flv. Im then passing metadata using yamdi.
However, this process is very timely as im converting loads of avi files at a time.Im looking for a script, or a way where I can execute one command/script and which will convert all files in the directory I specify, then run those converted files through yamdi.Im guessing it would be some sort of loop, and then changing for each file?
The desktop search has stopped working in Gnome.I get a message that says 'Search Service not running' with a button that says 'Start Search Service'.When I click the button nothing happens
View 1 Replies View RelatedHow to add an application to start automatically on system startup in Linux? My distro: Mandriva 2009.1
View 3 Replies View RelatedHow to add an application to run as a service in Linux?is there a script in /etc i should edit? What is recommended. Right now im running something in .profile but that's kind of not what i want.
View 3 Replies View Relatedi wanted to know how can i configure name service.
View 2 Replies View Relatedmy linux bos red hat Ent 5.0 is reporting CPU usage 100% for the service/agent cimserver.basically is slows down my system and I have to kill it so my system is OK again.my question is Can I set the CPU usage for this service? I mean can I set it to use only 4% or 10% of my CPU? or any other way to troubleshoot this 100% CPU usage. Since I've uninstalled and reinstall the agent and same issue.is it possible to set the CPU Usage?
View 5 Replies View Related