Programming :: Shell Translator Utility ?

Jul 25, 2010

Usability? Home: you use bash. Work, school, vacation, seminar: you're stuck using zsh or tcsh (or Drush in Drupal).

Function: Without giving errors, quietly cross-checks a non-shell command for its equivalent in the running shell and executes that command, properly-syntaxed.

Name: Well, as the word "imperative" in rudimentary linguistics is a synonym for "command," I thought of an acronym derived from the terms SHell Imperatives Translator. But this morning, I re-thought the lavatorial acronym. Considering it was a "container" of "hooks" that had the potential to operate much like a stripped-down cron or Ubuntu hook bundle, a more polite term for it would be "tacklebox".

View 2 Replies


ADVERTISEMENT

Slackware :: Have Printer Installation Utility Can Access Through Shell?

May 14, 2010

Do I have a printer installation utility I can access through the shell? I tried installing/configuring my parallel port HP DeskJet 712C through CUPS using xfce but they didn't list my printer.

View 3 Replies View Related

General :: Using Timeout Core Utility In Bash Shell Script?

Oct 12, 2010

I'm using timeout core utility in my bash shell script. The problem I'm facing is I want the PID of the command which is supplied to timeout. Let me explain with the code I'm using:

Code:
#!/bin/bash
timeout 120 ./prog1 &

[code]....

View 5 Replies View Related

Software :: How To Write Shell Script For DC3DD Disk Copying Utility

Apr 17, 2010

I run the following command for disk duplicating from one source to 5 destination harddisk.
dc3dd progress=on conv=sync,noerror iflag=direct bs=262144 hash=md5 log=sda_log.txt if=/dev/sda | tee >(dc3dd of=/dev/sdb) >(dc3dd of=/dev/sdc) >(dc3dd of=/dev/sdd) >(dc3dd of=/dev/sde) | dc3dd of=/dev/sdf
When I run the command in shell prompt it is working fine. But I want to write a shell script for this task. When I wrote and run the shell script it gives the error message syntax error near unexpected token.

View 6 Replies View Related

Ubuntu :: Unzip Program And Windows Translator?

Oct 19, 2010

I have loaded ubuntu 8.2 on to pc. All went fine and I downloaded kaffeine, i think, in a zip form. How do I unzip it then install it to program file. I also need a translator from windows xp to ubuntu as all the terms are new and different.

View 3 Replies View Related

Ubuntu :: English To French Offline Translator/dictionary

Mar 5, 2010

I am learning French. Is there any offline dictionary in ubuntu that can translate English words to french (with pronunciation if possible)?

View 1 Replies View Related

Software :: Translator Speaking Like Easy Lingo On Windows?

Jul 18, 2010

Is there a translator speaking like easy lingo on windows

View 1 Replies View Related

Programming :: Shell Scripting / Create A Shell Script Similar To Ls?

Jun 5, 2011

I am trying to create a shell script similar to ls, but which only lists directories. I have the first half working (no argument version), but trying to make it accept an argument, I am failing. My logic is sound I think, but I'm missing something on the syntax.

Code:
if [ $# -eq 0 ] ; then
d=`pwd`
for i in * ; do
if test -d $d/$i ; then
echo "$i:"
code....

View 10 Replies View Related

Programming :: Bash-shell-like Less Functionality In The Python Shell?

Jun 25, 2010

Is there some type of functional way to read things in the Python shell interpreter similar to less or more in the bash (and other) command line shells?

Example:

Code:

>>> import subprocess
>>> help(subprocess)
...
[pages of stuff to read]
...

I'm hoping so as I hate scrolling and love how less works with simple keystrokes for page-up/page-down/searching etc.

View 4 Replies View Related

Ubuntu Installation :: Cpuid Utility Is Not Compiled With U9.04 And Utility Is Not Available As Package With Synaptic?

Feb 5, 2010

cpuid utility is not compiled with U9.04 and the utility is not available as a package with synaptic -
other distributions have it available as rpm . url

Any way to run this utility in the Debian world?

View 2 Replies View Related

Programming :: Right Utility To Rename Multiple Folders?

Sep 14, 2009

I've got about twenty folders with names such as "Bennett Galleries" or "Athletic House" and I want to rename them to "Bennett_Galleries" or "Athletic_House". Any right utility to use to accomplish this (sed, awk, bash script, etc...)?

View 2 Replies View Related

Programming :: Utility That Draw The Graph Or Flow Chart Of An Application?

Oct 28, 2010

Does any one know any software or utility that draw the graph or flow chart of an application (if application code is on multiple files)?

View 1 Replies View Related

Programming :: Write A Utility Which Will Scan In A Text File And Search And Replace Strings?

Jul 16, 2010

Something very handy to do in a Linux shell, is manipulating files and strings - essentially parsing data. Write a utility which will scan in a text file and search and replace strings. We also want to keep track of how many strings we've replaced.

I know that my command would look like this: <utility name> <filename> <stringToSearchFor> <stringToReplaceWith>
Code: #!/bin/bash

[code]....

View 2 Replies View Related

Programming :: Prevent "leak" Into Shell From A Customized Shell Menu Script?

Dec 15, 2009

I've created a simple script based menu. This menu will be accessed by only a certain users via ssh.When user logs in, the menu will automatically run. (configured at user's .bash_profile).How do I force the session to close when user hits Ctrl-C or Ctrl-Break ?In a nutshell, I don't want user to have access to shell.

View 11 Replies View Related

Programming :: Shell Programming - Delete User Input

Jan 21, 2011

I recently started shell programming and my task now is to do a menu display.Currently i am stuck whereby user will input both title and author and it will delete it.

Do i have to use sed command?

View 4 Replies View Related

Programming :: Possible To Assist In Programming Shell Scripts?

May 17, 2010

Is it possible to assist in the programming Shell Scripts
Job:
To send a message to the email,All orders written in Terminal or ssh
example : ls , pwd , cat , and other

View 1 Replies View Related

Programming :: Finding A Utility To Combine Two Or More Binary Files Into A Single Binary File?

May 5, 2011

Is there any Linux utility to combine two or more binary files into a single binary file ?

View 7 Replies View Related

Programming :: Check Menu & Check List In Utility Dialog?

Aug 19, 2010

I want to put check menu & check list in utility dialog.i dont know how i do this

View 1 Replies View Related

Programming :: How To Turn Non-interactive Shell Into Interactive Shell?

Feb 4, 2011

I have a situation where I am in a non-interactive shell. I have tried from within my non-interative shell to spawn an interactive shell but my output still does not goto me. Isn't there a way I can somehow go into /proc or somwhere and make the output my /dev/tty1? Or some way else to remedy this?The situation arises because I drop from my restricted shell environment (a sort of CLI interface), into the actual Linux shell. I cannot change the code of the CLI environment I am just faced with being in the linux shell environment and its non-interactive. Its very annoying to have to put > /dev/tty1 after every command I type.

Not to mention it seems damn near impossible to get pagers like more and less to work properly when your in a non-interactive shell.

View 2 Replies View Related

Programming :: Shell Script To Tee ITSELF

Dec 10, 2008

I have a shell script that I would like to log to stdout and also to a file.....much like using tee. I would like to, instead of calling the script and piping to tee...i would like for the script to tee itself.

View 4 Replies View Related

Programming :: How To Create Own C Shell

Jul 11, 2010

i got to build my own linux shell for my project

View 5 Replies View Related

Programming :: Can Awk Take A Shell Variable

Jul 23, 2010

I have been searching most of today and am stuck on getting a variable into an awk portion of my bash script. I have this working:

Code:

#!/bin/sh
SRC=/var/log/mail.log
DEST=/var/www/output/myFile.txt
VAR=userName@myDomain.tld

[code]....

Can awk take a shell variable? Or do I have to do something completely different?

View 11 Replies View Related

Programming :: How To Use Scp In A Shell Script

Apr 2, 2011

I need to push out a file to a bunch of linux and solaris boxes so I was hoping to use a script to automate the process with scp (or something else / better) - how can I batchmode scp so that it will do this? I should mention the servers do have keys set up so I do not have to authenticate manually or through something like an expect script...

View 4 Replies View Related

Programming :: Reg Sed On Shell Script?

Feb 16, 2010

I am having a shell script with following lines

ORIG_LOG_ARCHIVE_FORMAT=`grep log_archive_format $LOG_DIR/init$CLONE_DB.ora | cut -d"=" -f2`
SRC_LOG_ARCHIVE_FORMAT=`sqlplus -s "/ as sysdba" @$SCRIPTS_DIR/log_archive_format.sql`
echo $ORIG_LOG_ARCHIVE_FORMAT

[code]...

When I execute this script I am getting below output

'enin16_%t_%s_%r.arc'
enip131_%t_%s_%r.arc
sed: command garbled: s/'enin16_%t_%s_%r.arc'/

However when I do the exact above command on unix prompt (refer below) after setting values for all variables, it is not giving sed garbled error message. May I know what should I do to make it work inside the script as well?

$ cat init_refresh$CLONE_DB.ora | sed "s/$ORIG_LOG_ARCHIVE_FORMAT/$SRC_LOG_ARCHIVE_FORMAT/g" > $LOG_DIR/init_refresh1$CLONE_DB.ora
$

View 3 Replies View Related

Programming :: How To Write A Toy Shell

Mar 24, 2011

I'm trying to write a toy linux shell. For starters this is what I'm trying to do:

1. Start a new process with fork.

2. Execute a program in the new process with execl().

3. Redirect the output from the new process from STDOUT to another file descriptor, using dup2(2).

4. In the parent process, read the output from the child process and write it to the screen.

Creating a new process and executing a program in it is no problems, the problem is that I can't seem to capture the output from it in the parent process.

Code:

//digenv
//C++arl 2011-03-24
#include <stdio.h>
#include <sys/types.h>

[code]...

View 14 Replies View Related

Debian Programming :: How To Use Shell Command

Sep 6, 2013

How to use shell command?

installs.sh:

Code: Select allapt-get install icedove-l10n-hu
apt-get install rar
apt-get install ...
...
y press key or other language is other key. hungarian key is: i

english after apt-get install in gnome-terminal: (y)es or (n)o
hungarian after apt-get install in gnome-terminal: (i)gen or (n)em

How to yes or no automatically in all languages? Not manual, not 'Y'/'I' or 'N'/'N' keydown.

I would like use this script my fresh installed Debian 7.1. I would like run this install.sh when Debian is installed for my all softwares when i would like use.

10 PC installing easy and faster my script.

If no script is slowly install for my 10 PC.

View 2 Replies View Related

Programming :: Detection Of A Command In Shell?

Apr 2, 2010

I would like to know if there is any way to detect a command if it going to be executed in the shell?

Eg:
Cmd: sudo apt-get clean I want a C program to be called before this cmd is executed.

View 8 Replies View Related

Programming :: Arrange The Results In The Shell?

May 10, 2010

Im having problems with this little thing in a C example Im doing. I want to show in the shell like this example:

Name Birthday
Tomas 13
Adrian 24
Nate 15

Im trying to use the printf function but the names doesnt have the same lenght. So I cant do it like this:

printf("Name Bithday
");
printf("%s %d
");

View 4 Replies View Related

Programming :: Setting Variables In C-shell?

Jul 12, 2010

I'm running into a problem when I try to set a variable to an awk output in c-shell. Right now my command is Code: set STR_MSG_TYPE = `awk -F{ '/msg_type/ {print $2}' <filename> | tr -d }'/''*' ` I then run echo to see what the output is and it returns blank, however, when I run the same awk command from the command line, I get an actual output of "MT-715". Am I setting my variable incorrectly? I do something similar using the date command to set a STR_DATE variable earlier in the code and it works fine and I use the same syntax.

View 1 Replies View Related

Programming :: GDB Terminates When Spawned From Shell

Nov 22, 2010

I want to spawn a GDB session from bash script and keep it working to interact it from outside. But when I start it in background (with '&' sigil).

Code: gdb -x gdb_script.txt ./a.out < gdb_pipe.fifo &
It executes passed script and terminates by itself (I do not pass any data or signals to it)

Code: Breakpoint 33, main (argc=1, argv=0xbffff0f4) at main.c:53
---Type <return> to continue, or q <return> to quit---53
read_main_config();
(gdb) quit

A debugging session is active.
Inferior 1 [process 5957] will be killed.
Quit anyway? (y or n) [answered Y; input not from terminal] What can I do to make it alive?

View 1 Replies View Related







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