Sponsored Content
Full Discussion: Combine multiple commands
Top Forums Shell Programming and Scripting Combine multiple commands Post 302986352 by RudiC on Thursday 24th of November 2016 04:12:47 AM
Old 11-24-2016
Not being familiar with konsole, I'd guess you could combine several commands in a "list", i.e. adding them after another separated by semicolons, eventually enclosed in (double) quotes. On top, ssh does allow to specify a command as a parameter. Did you consider that?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Combine Two Commands Output

How i can combine output of two commands in one file.......i tried this but it is not working although each command is working good seperately..... head -1 filename | tail -1 filename i think there is problem with command concatenator? (16 Replies)
Discussion started by: 33junaid
16 Replies

2. UNIX for Dummies Questions & Answers

Combine commands

Hi, i tried to combine grep with find and it didnt work grep 'find dirname filename" i also would like that the file will be sorted in the way. thanks a lot. (2 Replies)
Discussion started by: Spoiler
2 Replies

3. Shell Programming and Scripting

nawk, combine commands

How would I combine two nawk commands together without calling up nawk twice. Just like the sed -e command nawk '$3>=from&&$3<=to' from="$STIME" to="$ETIME" | nawk '{$5="";$6=""}1' (2 Replies)
Discussion started by: numele
2 Replies

4. Shell Programming and Scripting

Combine two lists From Multiple Grep commands.

I'm working with a file with an xml structure. I'd like to parse it down to just the bits i want. Here is and example of the file <message id="96352877" method="status"> <date rfc="Sat, 12 Mar 2011 16:13:15 -0600" unix="1299967995" /> <services> <service id="facebook"... (4 Replies)
Discussion started by: Erulisseuiin
4 Replies

5. Shell Programming and Scripting

Can I combine these two commands into one?

sed -e :a -e 's/<*>//g;/</N;//ba' a2.html -removes html tags and sed -i 's/YOURS TRULY/Joe Bob/' a2.html Replaces a string with another string can i make it into one string? (2 Replies)
Discussion started by: boyboy1212
2 Replies

6. Shell Programming and Scripting

Combine multiple awk commands

Hi Team, I am getting input like below $ ps -ef | grep pmon | grep -v asm | grep -v grep oracle 3246 1 0 00:03 ? 00:00:01 ora_pmon_racora1 oracle 4367 1 0 00:03 ? 00:00:01 ora_pmon_test1 oracle 6893 1 0 00:03 ? 00:00:01 ora_pmon_gipora1... (6 Replies)
Discussion started by: kamauv234
6 Replies

7. Shell Programming and Scripting

Csh - how to combine multiple commands in one line

Hey everyone, I am working in an environment where the different users can use ksh or csh. My situation is that I need the same result with one single command line. I am searching for the real path the file is in. My ksh input and output ts2:ts2adm> cd $(dirname $(which sapcontrol)); pwd -P... (2 Replies)
Discussion started by: h1kelds
2 Replies

8. Shell Programming and Scripting

Combine awk commands into one

my code: gawk 'NR>'"${LASTLINENUM}"' && NR<='"${LINEENDNUM}"'' ${LOGFILE} | gawk '{l=$0;} /'"${STRING1}"'/ && /'"${STRING2}"'/ {for (i=NR-'"${BEFOREGLAF}"'; i<=NR+'"${AFTERGLAF}"'; i++) o=i; t++;} END { for(i=1; i<=NR; i++) if (o) print l; print t+=0;}' i would like to combine this into one... (5 Replies)
Discussion started by: SkySmart
5 Replies

9. Shell Programming and Scripting

Combine two awk commands

Hi, Can someone please guide me how to combine the following two awk calls in one? I noticed that it is very often situation for me, and I think that it can be replaced with one awk call. The question is more general, not the exact one. echo "A B C/D" | awk '{print $3}' | awk -F/ '{print... (4 Replies)
Discussion started by: mirusnet
4 Replies

10. Shell Programming and Scripting

Combine 2 Commands

Hello, I have the following code. I wonder if it can be combined into 1 command. y=`ls -1| tail -n 1` m=${y%.abc} Thank you. (3 Replies)
Discussion started by: april
3 Replies
dxdw(8) 						      System Manager's Manual							   dxdw(8)

NAME
dxdw - Runs and repeats command line commands SYNOPSIS
/usr/bin/X11/dxdw [-c initial_command] OPTIONS
Specifies the command to run. The command string must be enclosed in double quotes if it contains any spaces or special characters inter- preted by the shell. Display Window accepts all of the standard X Toolkit command line options, which are documented in the OPTIONS section of the X(1X) refer- ence page. DESCRIPTION
The Display Window application, dxdw, can be used to run commands at specified time intervals. You can use Display Window to: Run a command and display a transcript of the output Repeat a command at regular intervals Print the output to the default printer Save the output to a file You can use Display Window to run common commands without starting up a full xterm. The optional -c option specifies an initial command. The Display Window application presents a transcript containing the current command, its output, and its command-line error messages. You can change the command after the application starts. The transcript area is output-only, so you cannot use Display Window to run commands that require user interaction on the command line. The Display Window application can be invoked from the CDE Application Manager from the following categories: Application Group: System_Admin System Admin Subgroup: Daily Admin When the Display Window main window invoked, the transcript is empty because there is no command running. Enter a command to run in the Command input text field. Because Display Window can be started with a default initial command, several launchpoints have been created in the Application Manager to run specific command-line applications. These applications include I/O Statistics (iostat), Network Statistics (netstat), Virtual Memory Statistics (vmstat), and Who? (who). To start one of the preceding applications within Display Window from the CDE desktop: Click on the Application Manager icon on the CDE front panel. Double click on the System_Admin application group icon. Double click on the Tools application group icon. Double click on the icon for the command you want to run in the Display Window application. The Display Window application invokes the command once. The output from the command is displayed in the transcript area. You can also start Display Window from the command line. To start Display Window from the command line, enter the following: /usr/bin/X11/dxdw [-c initial_command] The -c option specifies the command string to run when Display Window is started. On the command line, the command string must be enclosed in double quotes if it contains any spaces or special characters interpreted by the shell. The command string can be any of the following: A single command A series of commands in a pipeline (|) A series of commands separated by semicolons After Display Window starts, a new command string can be entered in the Command input text field. In the graphical user interface, it is not necessary to enclose the command string in double quotes. To enter a new command string: Clear the Command input text field if a command is already present. Enter a new command string in the Com- mand input text field. Press the Return key in the Command input text field to run the command. EXAMPLES
The following example runs the iostat command one time in the Display Window application. You can use the Repeat Every dialog box to repeat the command at regular intervals. dxdw -c iostat The following examples show how to use Display Window from the command line. dxdw -c df dxdw -c "ps -aef" dxdw -c "ps -aef | grep dxdw" dxdw -c "mount; showmount" You can view the Display Window online help volume without run- ning the application. To open the Display Window help volume from the command line, enter the following command: /usr/dt/bin/dthelpview -h /usr/dt/appconfig/help/C/Dxdw.sdl FILES
Contains the Display Window application executable Contains the Display Window help volume Contains the default values for the applica- tion's X resources SEE ALSO
Commands: iostat(1), netstat(1), vmstat(1), who(1), X(1X) dxdw(8)
All times are GMT -4. The time now is 06:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy