COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### How can do excute command?

• Email
• Follow

 I was connect other machine rsh command.
Othere computer made shell script .

msgchk.sh

#!/bin/ksh
export LANG=C
DATE1=/bin/date +%b
DATE2=/bin/date +%d
/usr/bin/grep "${DATE1}${DATE2}" /var/adm/messages*

so , main computer execute command.

rsh machine msgchk.sh
stty: : Invalid argument
stty: : Invalid argument
/var/adm/messages:Jul 16 01:53:21 hanmi unix: SUNW,hme0: late collision
/var/adm/messages:Jul 16 11:48:00 hanmi unix: SUNW,hme0: late collision
/var/adm/messages:Jul 16 11:48:48 hanmi last message repeated 1 time
stty: : Invalid argument
stty: : Invalid argument

I don't understand stty: : Invalid argument command.
Do know any other method?


 0

See related articles to this posting

0 Replies
84 Views

Similar Articles

12/13/2013 11:35:56 AM
[PageSpeed]

Similar Artilces:

can't run perl commands from command line
Greetings, I just installed perl v5.8.7 onto a 2003 server box. I can only seem to get perl -v to run on the command line only when I cd into the c:\perl\bin directory. >From the commad line at any other location I am getting the ... 'is not recognised as an internal or external command, operable program or batch file error'. I am plannign on running MRTG on this box and I am sort of new to perl. I got mrtg to run on one of my workstations with win2k but I am stumbling with this 2003 server. Is it an IIS issue? Is it a permissions issue? Thanks all! i'm not familiar wit...

Excute a command within a thread
Hi folks,I am trying to create a program that would excute an external process(in my case mplayer) with Runtime.exec() at a given time. Then after acertain, not constant, period the external process should be stoppedand the program should be back at the start position.By far, mplayer gets started and killed on time. The problem is that adump file should be created after each run of mplayer, but it's not.The process is loaded in the memory and apparently waits for somethingto finish. When I manually terminate the java thread, without killingthe "mplayer" process, mplayer finally s...

Can we alias a command in tclsh
Hi Do we have something like alias <new command> <old command> in Tcl shell. I saw a Tcl_CreateAlias in Tcl - C library doc Please help Thanks Subhendra subhendra.basu@gmail.com wrote: > Hi > > Do we have something like > > alias <new command> <old command> > > in Tcl shell. > > I saw a Tcl_CreateAlias in Tcl - C library doc > > Please help > > Thanks > Subhendra > see the 'interp' command documentation: interp alias {} $newcommand {}$oldcommand Michael ...

command-line mailer which can attach
Is there a command-line mailer which has been ported to OS X and which can send attachments from the command line such as mutt? I tried to compile mutt but failed. I'd love to have a pointer to the binaries of such mailers [if exist]. /PaulN On 24 Nov 2003 00:10:28 GMT, Paul Nevai (2me@PaulComputing.com) wrote: > Is there a command-line mailer which has been ported to OS X and which can > send attachments from the command line such as mutt? > > I tried to compile mutt but failed. Paul - mutt-1.5.5 compiles fine under Panther (against slang-1.4.9). This isn't using...

How can I execute a system command in c++
Hi, I am writing a C++ program under linux. Can you please tell me how can I execute a System command in c++? Kind of like System.exec() in Java? Thank you. silverburgh.meryl@gmail.com wrote: > Hi, > > I am writing a C++ program under linux. > Can you please tell me how can I execute a System command in c++? > Kind of like System.exec() in Java? > > Thank you. > #include <stdlib.h> system("your command here "); 'kind of' like System.exec() is the right way to describe it. Linux has O/S functions like exec and fork, which might be more ...

how can I replace half an environment by a command?
When preparing slides for a talk I use beamer (of course). I would like to write the slides as follows: ==== Title of first slide ==== content content content ==== Title of second slide ==== content content content ==== (a new slide with no title) ==== content content content ============= This would make it very easy to produce my slides. But how can I achieve this in pure (La)TeX? I would need to define a command '==== #1 ====' that expands to \end{frame}\begin{frame}\frametitle{#1} But of course this does not work, first of all the equals sig...

Can I echo something to my own command line?
I'd like to echo "ping " > [my own command line] in a script like so: #!/bin/bash ...[shell code here] echo "ping " > [my own command line] So that after running the above I end up with this command line: $ping ^ A space here saves me having to hit the space bar! so all I have to do is type the IP address and hit enter. Is such a thing possible? Ian Ian Gil <i@nospamallowed.com> wrote: > I'd like to > echo "ping " > [my own command line] > in a script like so: > > #!/bin/bash &... How can I bind a shell command to a key? Hi, if I want to bind a shell command to a key, like bind "find . -type f -name "*" -print | etags -" to "F1", what should I add to my ".emacs"? Thanks! "LUK" <700MHz@gmail.com> writes: > Hi, if I want to bind a shell command to a key, like bind "find > . -type f -name "*" -print | etags -" to "F1", what should I add to my > ".emacs"? (define-key global-map [(f11)] (lambda () (interactive) (shell-command "find . -type f -name '*' -print | etags... can menu or a menubutton have a command associated with it ? The feature I added to the preexisting GUI is suppposed to allow for rescaling the represented histogram data but ONLY for a subset of all possible selectable histograms. Such a feature is implemented through a menubutton, labelled AINT that, when pressed, drops down a two-radiobutton menu. I would like to move the verification of the current histogram elegibility for rescaling at the menubutton level, preventing the menu from appearing at all if the current histogram does not possess the "aint" option. In short, I'd like the warning message box ("AINT does not apply to the... Can macro trigger commands of swx Hi guys, The single hotkeys, without using Shift, Ctrl or Alt, are not enough for the frequently used command. Therefore, I think of assigning hotkey to macros that can detect the current status, such as in a Sketch, Part, Drawing or Assembly environment. That means a hotkey may assign to 4 commands depending on the current status. The problem is that I can't find a way to trigger most commands of swx, such as measurement, or feature fillet propertymanager page, etc. Triggering a command is also necessary for assigning two keys, like cc, as a hotkey. (I learnt from one message that the tw... can I use Star commander with VMware? Hi there will star commander be able to use my xe1541 connection if I try running it under a vmware session? Thanks whocrazy@gmail.com wrote: > Hi there > will star commander be able to use my xe1541 connection if I try running it under a vmware session? > Thanks > Nope -- - Pete Rittwage http://rittwage.com C64 Preservation Project http://c64preservation.com > will star commander be able to use my xe1541 connection if I try running it under a vmware session? I haven't tried that myself. (I have VMWare at work but no Commodore stuff. At home, vice versa.) If a softw... Which command can display the network speed. Hi, Could some one tell me which command can display the NIC link speed between a work station and a server. Thanks, Eric Hi, You mean bandwidth or link-speed?? If link-speed, what Unix-flavour? I know, with Sun Solaris you can use: /usr/sbin/ndd -set <device class> instance <instance number> /usr/sbin/ndd <device class> link_speed /usr/sbin/ndd <device class> link_mode link_speed will return 0 for 10mbit and 1 for 100mbit link_mode will return 0 for half duplex and 1 for full duplex Example: if you want the speed for /dev/hme2, you issue: /usr/sbin/ndd -set ... Can someone explain this route-map command Hi Guys, Can you explain in detail what exactly this command is doing. route-map nachi-worm permit 10 match ip address 199 match length 92 92 set interface Null0 thanks RTR bhamoo@gmail.com writes: >Can you explain in detail what exactly this command is doing. >route-map nachi-worm permit 10 >match ip address 199 >match length 92 92 > set interface Null0 Defining a route-map (just defining it, not using it anywhere) that will match an IP address that is matched in access-list 199, for any packet that is exactly 92 bytes in length and setting its next hop interface to ... How can I get the Real memory availableby command??? Hi, I need to build a script that echos the avaiable real memory (free). The only command i was able to find that give me this kind of output was 'top' command, but even if i redirect it's output to a file (top -d1 > MyTempFile.temp), since it throws all output into one single line, i am not being able to work on it, in order to get the free memory (real), nor even with awk that throws me this error: annot have more than 199 fields. The input line number is 1. The source line number is 1. Is there any other command on Hp-Ux that gives me the real... Can I test db link with SQL command ? Can I test db link with SQL command ? Thanks in advance. Christophe. "cf" <news@tolede.com> wrote in message news:3f94146e$0$245$4d4eb98e@read.news.fr.uu.net... > Can I test db link with SQL command ? > > Thanks in advance. > > Christophe. > > Try select 'Link works' from dual@dblink / Anurag ...

bash: Can I access the raw command line?
In bash, can I get access to the raw command line? That is, if I invoke a command thusly: foo -a -b -c "xyz A <" I would like to be able to see exactly that from within foo. Why? Well, it was my first idea for implementing grepall, which I want to call like this: grepall -n "setting param <" and within grepall execute this: find . -name "*.c" -o -name "*.h" -o -name "*.cc" -o -name "*.hh" | \ xargs grep -n "setting param <" .. After a few hours of thinking, playing around with various varieties of $... print -dpdf command, can I specify the filename? how can I specify the filename of the print -dpdf command? Thanks! "timo " <animempeg@yahoo.com> wrote in message news:hlfer2$hpf\$1@fred.mathworks.com... > how can I specify the filename of the print -dpdf command? > > Thanks! If you have the filename stored in a variable, use the function form of PRINT: thefile = 'myfile.pdf'; print(thefile, '-dpdf') -- Steve Lord slord@mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ ...

How can i command bit Inputs in an FPGA board?
How can i command bit Inputs in an FPGA board? On 24 Mai, 12:16, floris.b...@gmail.com wrote: > How can i command bit Inputs in an FPGA board? you have to say: I command ! Antti On 24 May 2007 03:16:22 -0700, floris.bala@gmail.com wrote: >How can i command bit Inputs in an FPGA board? Bit Inputs: By the left, Quick March! Do you mean "how do I cause pins to become inputs", or "how do I drive my chosen values on to input pins"? Please be a little more clear and specific. -- Jonathan Bromley, Consultant DOULOS - Developing Design Know-how VHDL * Verilog * S...

Can you use Boolian command to search emails?
Can I use AND & OR COMMANDS with my search? Is the a basic tutorial for searching in lotus notes. I never seam to get the results I want or expect in lotus notes. thanks "lbbss" <labicff@yahoo.com> wrote in message news:12064bc4-a0d2-4904-a561-71e4126b2077@k37g2000hsf.googlegroups.com... > Can I use AND & OR COMMANDS with my search? Is the a basic tutorial > for searching in lotus notes. I never seam to get the results I want > or expect in lotus notes. thanks Yes. It is documented in the online help. It also depends a little on what versi...

How can I redirect all commands result to one file
I had one script file named dotest1. The user will only run as >dotest1 without any redirectiong commands as " >dotest1 >& result" So, how can I redirect it in the script file dotest1? I do know I can redirect each command as above method ,but it's not grace since I have thousands of command. Can I set one variable such as "set stdout=myresultfile" then ..... In article <1160927395.114192.39950@m73g2000cwd.googlegroups.com>, Wavelet <wavelet.liu@gmail.com> wrote: >I had one script file named dotest1. The user will only run as >>dotes...