03-07-2017
Thanks. I'd noticed Python did that but had no idea why.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
perl 5.6.1 in win2000:
my program uses a subroutine which will write log file. i will call that sub routine like this
&log_message("the file $inputfile opened");
what should i do to write the stderr on the same log file itself..
i tried to pass the stderr to the subroutine like ... (1 Reply)
Discussion started by: sekar sundaram
1 Replies
2. Shell Programming and Scripting
I want to log the following stdout:
router(config)#scripting tcl init tftp://192.168.1.1/remote-ping.tcl
=====================================
tclsh
proc rping {} {
foreach address {
192.168.1.1
192.168.2.1
} { ping $address re 50 si 1500
}
=====================================
... (0 Replies)
Discussion started by: research3
0 Replies
3. Shell Programming and Scripting
Can anybody help me to write a shell script to login interactive system
once u open a connection using telnet it will ask for
USERCODE:
PASSWORD:
DOMAIN: (1 Reply)
Discussion started by: sudhakaryadav
1 Replies
4. Homework & Coursework Questions
Q. Write a script that behaves both in interactive and non interactive mode. When no arguments are supplied it picks up each C program from the directory and prints first 10 lines.
It then prompts for deletion of the file.
If user supplies arguments with the script , then it works on those files... (8 Replies)
Discussion started by: rits
8 Replies
5. IP Networking
Hi,
We have smb client running on two of the linux boxes and smb server on another linux system. During a backup operation which uses smb, read of a file was allowed while write to the same file was going on.Also simultaneous writes to the same file were allowed.Following are the settings in the... (1 Reply)
Discussion started by: swatidas11
1 Replies
6. Programming
Hi,
i am using the below program to read from the standard input or to write to standard out put.
i know that using highlevel functions this can be done better than what i have done here.
i just want to know is there any other method by which i find the exact number of characters ( this... (3 Replies)
Discussion started by: MrUser
3 Replies
7. UNIX and Linux Applications
Hello everyone, I just want to write a shell script for automatic feeding the username and password prompts when running my commands,
I tried this one but it did not work. Please help me for any way out.
#!/bin/bash
#!/usr/bin/expect
cd ~/workspace/mimosanetworks_mimosa-nms
ls -ltr
... (5 Replies)
Discussion started by: sandy-sm
5 Replies
8. Shell Programming and Scripting
Hello,
As stated in the title, I do some hacked parallel processing by running multiple instances of bash scripts, each in their own subshell. The code looks like this,
# launch one batch-train script in background for each value in fold group list
for FOLD_GROUP in "${FOLD_GROUP_LIST}"
do
... (5 Replies)
Discussion started by: LMHmedchem
5 Replies
9. Solaris
Hi,
I got a process (c written) that we usually run this way :
EmsChkQu >> /EMS/log/EmsChkQu.log 2>&1
When trying to use it as a service I defined it this way :
<?xml version='1.0'?>
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
<service_bundle... (6 Replies)
Discussion started by: zionassedo
6 Replies
10. UNIX for Advanced & Expert Users
Hi ,
In file first line start with "",when trying to remove using sed i am getting the below error .Please advise
sed -e 's///g' -e 's/$]//g' segment1.txt >>segment_m1
sed: couldn't write 1378 items to stdout: No space left on device
Thanks,
Mohan (1 Reply)
Discussion started by: mohan705
1 Replies