Sponsored Content
Top Forums Shell Programming and Scripting Any shell or hack that makes the shell command line take vi commands? Post 302649423 by gary_w on Thursday 31st of May 2012 10:05:09 AM
Old 05-31-2012
See "Korn shell history editing"on this page:
Recalling and editing previous commands
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

KORN Shell - Spawn new shell with commands

I want to be able to run a script on one server, that will spawn another shell which runs some commands on another server.. I have seen some code that may help - but I cant get it working as below: spawn /usr/bin/ksh send "telnet x <port_no>\r" expect "Enter command: " send "LOGIN:x:x;... (2 Replies)
Discussion started by: frustrated1
2 Replies

2. Shell Programming and Scripting

How to run unix commands in a new shell inside a shell script?

Hi , I am having one situation in which I need to run some simple unix commands after doing "chroot" command in a shell script. Which in turn creates a new shell. So scenario is that - I need to have one shell script which is ran as a part of crontab - in this shell script I need to do a... (2 Replies)
Discussion started by: hkapil
2 Replies

3. UNIX for Dummies Questions & Answers

what are some different commands in c shell and korn shell??

I am doing this simple script using c shell and korn shell. The commands I use are fgrep , ls, and also some redirecting. Is there any difference in using both of these commands in c shell and korn shell? Thanks and sorry for the stupid question. (1 Reply)
Discussion started by: EquinoX
1 Replies

4. Shell Programming and Scripting

Can BASH execute commands on a remote server when the commands are embedded in shell

I want to log into a remote server transfer over a new config and then backup the existing config, replace with the new config. I am not sure if I can do this with BASH scripting. I have set up password less login by adding my public key to authorized_keys file, it works. I am a little... (1 Reply)
Discussion started by: bash_in_my_head
1 Replies

5. UNIX for Dummies Questions & Answers

Passing command line argument between shell's

Hi, I am facing a problem to pass command line arguments that looks like <script name> aa bb "cc" dd "ee" I want to pass all 5 elements include the " (brackets). when I print the @ARGV the " disappear. I hope I explain myself Regards, Ziv (4 Replies)
Discussion started by: zivsegal
4 Replies

6. UNIX for Dummies Questions & Answers

Command line ok but not shell

I want to substitute a charactor "PAN" with "TAN" in a shell, I used sed command in shell, it wo'nt work but the same is run from command prompt it was successful. the command is sed ' s/PAN/TAN/g ' <i/p> > <o/p> sed ' s/^M/^M/g ' <i/p> > <o/p> (1st ^M is Ctrl+V+M, 2nd should be line feed/next... (2 Replies)
Discussion started by: anil_kut
2 Replies

7. Shell Programming and Scripting

Shell Text Based Game, This Error Makes NO sense. Please help

Okay so I'm making a simple text based game that branches into different scenarios. By branching I mean branching off into whole different files with that part of the game in it. I got tired of working on scenario 1 so I'm working on scenario 2. As I get started and try to test it, I get an... (3 Replies)
Discussion started by: lemonoid
3 Replies

8. Shell Programming and Scripting

Embeded shell variable in command line

Hello, I know this is a situation about the single quote and double literal, but I could not figure out after many search. I need to loop through thousands of different BACs sequencing to optimize kmer individually. IN=/PATH/TO/INPUT/FILES for sample in S{01..1096} do run_program... (9 Replies)
Discussion started by: yifangt
9 Replies

9. UNIX for Dummies Questions & Answers

Ls -1 at Command Line vs in a Shell Script

Hello, I have symbolic links to a bunch of directories (all starting with the letter X) in the cwd. When I run the following on the command line, I get the list as I want it. ls -1 X* > dir.list However when I run it in a shell script like given below, it lists all the files in each of... (3 Replies)
Discussion started by: Gussifinknottle
3 Replies

10. Shell Programming and Scripting

Need help with shell commands (not sure which command is appropriate)

Dear All, I have 2 files namely file1 and file2. in file1 I have something like this Min X = -250.000000, Max X = 250.000000 Min Y = -95.000000, Max Y = 95.000000 Min Z = -95.000000, Max Z = 136.500000 I have to write this date to file2 as xMin -250.000000; xMax 250.000000; yMin... (15 Replies)
Discussion started by: linuxUser_
15 Replies
FLDIGI-SHELL(1) 														   FLDIGI-SHELL(1)

NAME
fldigi-shell - program for controlling fldigi SYNOPSIS
fldigi-shell [OPTIONS] [FILE] DESCRIPTION
The fldigi-shell program controls fldigi(1) over HTTP via XML-encoded remote procedure calls (XML-RPC). It can call any XML-RPC method exported by fldigi, and also defines some useful commands of its own. OPTIONS
-d Enable debug output. -u URL Use URL to access the server. Defaults to "http://localhost:7362/RPC2", which corresponds to fldigi's default listen address and port. -c COMMAND Execute command COMMAND and exit. COMMANDS
Note The "x:yz" notation refers to the return type and argument type(s). They are: "n" (nil), "i" (integer), and "s" (string). debug (n:n:) Toggle debug output. eval (s:s) Evaluate Perl code. exit (n:n) Exit the shell. help (n:n) Print help for server (fldigi) methods and shell commands. history (s:n) Print command history. modems (s:n) List all modem names. poll (s:i) Poll for new received text every i seconds. Defaults to 1. pskrqsy (n:si) QSY to ith best frequency for grid s. The list of frequencies is retrieved from the PSK Reporter website; see RESOURCES. The grid square string may be left empty, and the index argument defaults to 0 (first frequency). recvtext (s:n) Get all received text. reinit (n:n) Fetch commands from the server and rebuild command list. send (n:s) Send text interactively, one line at a time. sendchar (n:s) Send text interactively, one character at a time. sendfile (n:s) Send text read from file s. sendstr (n:s) Send string s. source (n:s) Read commands from file s. time (s:s) Time a command. wait (n:s) Wait for server TRX state to become s. EXTENDED DESCRIPTION
The shell has three modes of operation: 1. Interactive mode with history, tab completion and command line editing. This is the default mode when fldigi-shell is run without arguments. 2. Batch mode for a single command with the -c option. 3. Batch mode to "source" a file containing Perl code. Fldigi-shell commands can be called using "execute("COMMAND [ARG ...]")" calls. FILES
$HOME/.fldigi/shell-history Contains the fldigi-shell command history. EXAMPLES
while :; do fldigi-shell -c pskrqsy; sleep 900; done Change to the "best frequency" (see PSK Reporter) every fifteen minutes. SEE ALSO
fldigi(1), xmlrpc(1), readline(3), RPC::XML(3pm) BUGS
o Some additional command wrappers are needed. o Command completion should be enabled for the arguments of some commands. o The XML-RPC handling code should probably go in a separate module. o It should be possible to pass multiple -c CMD arguments. RESOURCES
Fldigi web site: http://www.w1hkj.com/Fldigi.html The PSK Automatic Propagation Reporter site can be found at http://www.pskreporter.info/ The GNU Readline Library: http://directory.fsf.org/project/readline/ XML-RPC home page: http://www.xmlrpc.com/ AUTHOR
Fldigi-shell and this manual page were written by Stelios Bounanos, M0GLD <sb[at]enotty(dot)net>. COPYING
License GPLv2+: GNU GPL version 2 or later. 07/01/2012 FLDIGI-SHELL(1)
All times are GMT -4. The time now is 03:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy