Sponsored Content
Full Discussion: Copy Script Problems .....
Top Forums UNIX for Dummies Questions & Answers Copy Script Problems ..... Post 13882 by thehoghunter on Thursday 24th of January 2002 03:57:48 PM
Old 01-24-2002
More information is required (like the error message and more of the code) as the code you did put here does not come up with an error message.
thehoghunter
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

script problems

Hi, Here is an example of a problem I have: File2: contain the following lines: a^ aaa^aa aa^~ b^ bbb^bb bb^~ c^ ccc^cc cc^~ d^ dddd^dd dd^~ File1: contain the following lines: b^ bbb^bb bb^~ c^ ccc^cc cc^~ I get File2 as input and I want to do as following: for each line in... (3 Replies)
Discussion started by: hellsd
3 Replies

2. UNIX for Dummies Questions & Answers

Stock script problems

I'm have some trouble, I'm doing some unix stuff for fun and I can't get something to work I have a getquote.sh script: wget "http://finance.yahoo.com/q?s=$1" -o /dev/null -O quote echo `echo $1; egrep "Last Trade:" quote | cut -d ">" -f 3 | cut -d "<" -f 1` to get the current trading price... (1 Reply)
Discussion started by: hinch
1 Replies

3. Shell Programming and Scripting

Script problems

Hi Can anybody please explain how the below script works and if there is any problems with it? The script is part of an archival process but it keeps crashing out. #!/sbin/sh - clear purgelist="/var/opt/moto/live/scripts/old_messages_purge_list" for i in `cat $purgelist` do ... (2 Replies)
Discussion started by: runnerpaul
2 Replies

4. Shell Programming and Scripting

two script problems

i have two problems with my phone book script the first i want to only allow a valid name if it has letters and spaces not a number in the name. so "joe smith" is ok "joe smith1" is not ok. the second problem is how can i cut a name out of a txt file i have this as my test txt file joe blogs... (3 Replies)
Discussion started by: zappedback
3 Replies

5. UNIX for Dummies Questions & Answers

Problems with script and Cron

Hi Guys, total newbie here, Ive read through some of the threads about cron and scripts not working and have still drawn a blank as to why mine isnt working correctly. I have a script that runs the ausearch with a set of criteria i have setup, the only access i have to the system is via... (5 Replies)
Discussion started by: richie190784
5 Replies

6. Shell Programming and Scripting

shell script to call perl script problems

Ok, don't ask me why, but all calls to perl must be called by a shell script. Its really not ideal, but its what I have to work with. Calling it isnt the issue, its passing in the arguments. I have about 1000 perl scripts to call by a shell script. Right now, I'm executing the shell script... (3 Replies)
Discussion started by: regexnub
3 Replies

7. Shell Programming and Scripting

Shell Script Problems, Lose formatting when copy pasting from formatted file.

Hello, I'm having trouble with formatting some text via the terminal. I can get it perfectly formatted, but when I try and copy paste the text from the output file it loses it's formatting. Very frustrating! Basically I have 7 files (data data2 data3 data4 data5 data6 data7) containing a... (13 Replies)
Discussion started by: facetoe
13 Replies

8. Homework & Coursework Questions

Problems executing script

Hi, I'm a complete novice to Linux and UNIX. I'm having trouble getting a script to execute properly. I did a similar script earlier in the semester with no problems. For whatever reason I can't get this one to work. Any help would be greatly appreciated as I'm completely lost and frustrated at... (5 Replies)
Discussion started by: Lindy70
5 Replies

9. Shell Programming and Scripting

Shell Script Problems

Hi, I'm newbie in the shell script world and i want to solve some problems I am experiencing. My main goal is to create a ksh script to use 2 text files as input to execute a local shell script(create user commands in the criar.users.aix file) through a ssh connection in which the list of... (1 Reply)
Discussion started by: joaochambino
1 Replies

10. Shell Programming and Scripting

How to copy script output to a variable using same script?

I'm trying to copy script output and use it in this same script as a variable, and call the variable when script is compiled. The script is below. #!/bin/bash output=$(script) while read line; do if ]; then grep "$line" logfile.txt # Create text file echo "From: IT ... (4 Replies)
Discussion started by: SysAdminRialto
4 Replies
merror(9F)						   Kernel Functions for Drivers 						merror(9F)

NAME
merror - Send an M_ERROR message upstream SYNOPSIS
#include <sys/stream.h> #include <sys/strsun.h> void merror(queue_t *wq, mblk_t *mp, int error); INTERFACE LEVEL
Solaris DDI specific (Solaris DDI). PARAMETERS
wq Write queue associated with the read queue to send the M_ERROR on. mp Optionally, a STREAMS message to convert to an M_ERROR. error Error code to include in the M_ERROR message. DESCRIPTION
The merror() function constructs an M_ERROR message, and sends the resulting message upstream. If mp is NULL, merror() allocates a one-byte M_ERROR message. If mp is non-NULL, merror() attempts to convert the passed-in message to an M_ERROR. However, if the passed-in message has more than one reference (see dupmsg(9F)), or if it is of zero length, it is freed and a new message is allocated. If the allocation or conversion fails, merror() silently fails. Otherwise, the resulting one-byte data block is assigned the specified error code and sent upstream. RETURN VALUES
None. CONTEXT
This function can be called from user, kernel or interrupt context. NOTES
Callers must not hold any locks across an merror() that can be acquired as part of put(9E) processing. SEE ALSO
put(9E), dupmsg(9F) STREAMS Programming Guide SunOS 5.11 9 June 2004 merror(9F)
All times are GMT -4. The time now is 07:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy