10 More Discussions You Might Find Interesting
I'm facing some problems with a barcode scanner from Cygnal Inc, model Sweda SL-20. Info from lsusb -v:
Bus 003 Device 003: ID 10c4:ff11 Cygnal Integrated Products, Inc.
... (4 Replies)
Discussion started by: minharojr
2. Shell Programming and Scripting
I am working on a script, which requests users to enter input.
Ex: read -p "Please enter your email id:" email
I don't want users skipping this entry, this has to be mandatory.I dont want to proceed without input.
I can do a check if variable $email is empty and proceed if not.But, i... (7 Replies)
Discussion started by: aravindadla
Hello friends! i am writing a code in which i take inputs (numbers) from user and count the total number of positive, negative and zeros entered. I need to clear my standard input buffer before scanf() command. My compiler is completely ignoring the fflush(stdin) command. its not even showing any... (1 Reply)
Discussion started by: Abhishek_kumar
I have a very tricky problem, not able to solve it. Hence asking this question.
I have a code portion like this -
(void)fprintf(trace_fp,"parse_msg1 in_buf = %s \n",... (0 Replies)
Discussion started by: nsinha
5. Shell Programming and Scripting
I am looking for a shell script to merge input files into one file .. here is my idea:
1st paramter would be outfile file (all input files content)
read all input files and merge them to input param 1
ex: if I pass 6 file names to the script then 1st file name as output file... (4 Replies)
Discussion started by: hyd1234
6. Shell Programming and Scripting
I am new to writing script and want to use a Bash Piped while-read and read from user input.
if something happens on server.log then do while loop or if something happend on user input then do while loop.
Pseudocode something like:
tail -n 3 -f server.log | while read serverline || read... (8 Replies)
Discussion started by: MyMorris
Hope everybody is fine. First have a look at my code, then we will talk about it.
$ cat copy.c
#define PERMS 0644 /* RW for owner, R for group, others */
#define BUFSIZE 1
int main(int argc,char * argv)
int f1, f2, n;
... (4 Replies)
Discussion started by: gabam
# include <stdio.h>
# include <fcntl.h>
# include <stdlib.h>
# include <sys/stat.h>
int main(int argc, char *argv)
int fRead, fPadded, padVal;
int BUFFSIZE = 512;
if (argc != 4)
printf ("Please provide all of the... (3 Replies)
Discussion started by: naranja18she
9. Shell Programming and Scripting
I have to write one expect script to login to one system.
I am using
set timeout -1
spawn ssh root@hostname
Now when I do spawn ssh to that host it send some warning message and one challenge
I need to read this challenge value and has... (1 Reply)
Discussion started by: Lokesh Agrawal
10. Shell Programming and Scripting
I am trying to read output from a command. The output format is as follows:
Thursday 13 Mar 2008 Information
This is sample text
Friday 14 Mar 2008 Warning
This is one more sample text
First line contains informtation (date etc) and the 2nd line contains some information.
... (3 Replies)
Discussion started by: ssunda6