10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I am working on an embbeded system. On the system in /usr/bin there are a host of programs one of which is called alsamixer. I want to use this utility but whenever I try to run any alsamixer commands I get and error message:
Error opening terminal: vt100
Anyone ever seen this error... (10 Replies)
Discussion started by: Circuits
10 Replies
2. Programming
So, I'm into about 650 lines of some code I'm working on. So I'll try to explain instead of flooding this post. Say I have some code like this:
int main() {
int i, j;
char data;
printf("Gimme something: ");
fgets(data, INPUT_BUFF, stdin);
for (j = 0; j < data; j++){... (6 Replies)
Discussion started by: Azrael
6 Replies
3. UNIX for Beginners Questions & Answers
If run the below code today its creating all directory and getting output files,I f run same code tomorrow I am getting error.
can any one give suggestion to sortout this error.
OSError: no such file or directory : '062518'My code looks like this
import paramiko
import sys
import os ... (8 Replies)
Discussion started by: haribabu2229
8 Replies
4. Shell Programming and Scripting
I want to implement the below formula with awk oneliner
new_value = ((old_value - old_min) / (old_max - old_min) ) * (new_max - new_min) + new_min
I want to pass the value of old_min and old_min as variable. Here is what I did for this
old_min=$(awk 'BEGIN{a=100000000000}{if ($10<0+a) a=$10}... (2 Replies)
Discussion started by: sammy777888
2 Replies
5. Shell Programming and Scripting
Good evening, I'm currently working on a BASH script to convert audio between file formats and I've come across a snag. At the beginning of the script, I'm having the system check to see if any files with the .m4a extension exist in the directory, and if so, it runs the script. If there are no... (1 Reply)
Discussion started by: KBurkholder
1 Replies
6. UNIX for Dummies Questions & Answers
Hi
I have spool file data UTF file containing
Header
data
footer
when there is data my file type is UTF FORMAT. that is typing
file file1.utf
output is data
but when there is no records of data if only shows Header and footer then the flletype is ASCII... why this happen?
Pls... (2 Replies)
Discussion started by: shenthil76
2 Replies
7. Shell Programming and Scripting
I'm trying to convert hex to dec and with the help of output i need to do the process. If i execute the below code
assetValue=8f
assetNavigation=$(echo "ibase=16; "$assetValue"" | bc)
echo $assetNavigation
i'm getting the error below
$ sh script.sh
(standard_in) 1: syntax error... (1 Reply)
Discussion started by: Amutha
1 Replies
8. Solaris
Hi,
Iam trying to convert date and time to milliseconds which iam using in a script on Sun Solaris.
I have searched the posts on the forum but i could not get any solution.
The format iam using in script is:
date -u "Thu Dec 24 00:01:00 EST 2009"
But i get a bad command error.
... (6 Replies)
Discussion started by: jyothi_wipro
6 Replies
9. Shell Programming and Scripting
Dear friends,
I am new to Unix/Linux. I am trying to run following query but getting an error msg... Please can u people help me in this?
Query:
echo "select status_ac from db_acct where acct_num=AAA000337" | dbaccess elstest
Error:
217: Column (amd000337) not found in any table in the... (2 Replies)
Discussion started by: anushree.a
2 Replies
10. Shell Programming and Scripting
Hi,
When i run the below script,
#! /bin/csh
set userid=ficctprd
set kadir=KA_SWCCT_UK_lnswpsm05
setenv pidval `ps -ef | grep keepalive | grep -v keepaliveStub | grep -i $userid | grep -v grep | awk '{ print $2
}'`
I am getting the error "Unmatched ` ".
Could someone please help... (2 Replies)
Discussion started by: kotasateesh
2 Replies