Complete Code, or just Problematic Sections??


 
Thread Tools Search this Thread
Contact Us Post Here to Contact Site Administrators and Moderators Complete Code, or just Problematic Sections??
# 1  
Old 04-05-2011
Complete Code, or just Problematic Sections??

In general, would most experts, moderators and programmers, like to see the original entire script (even if very long), or just a simplified version of the problematic parts?

I currently have a GNU bash function (with a lot of issues). Is it more advisable to make separate posts for each problematic section, or try to get help with the entire script at once?

I am not trying to get others to do my work for me, I just need some guidance every now and then.

I have even written a small script to try to self-debug my problems, ignoring all the 'fancy' parts of the function.

If the community understands I have tried my best, is it too much to ask to solve the whole function?

In conclusion, what are my best chances of getting help?

Thanks.
# 2  
Old 04-05-2011
A simplified version of the problem would be preferred for starters. We may ask for more later if you cannot solve the problem using the simplified version. Always include the operating system and type of shell you are using.
# 3  
Old 04-06-2011
Just the "relevant sections" often aren't enough; if you don't know the problem, can you truly know what section's relevant? Tracking down where a bad value actually comes from sometimes ends up a game of 20 questions, played across several days.

Whenever possible, the smallest complete program that still exhibits the problem is best IMHO. There's no guessing or waiting that way.

Also related is error messages. If there are any, they're probably useful, and much more useful if they're not paraphrased or otherwise second-hand. They can lose a lot of their meaning in translation, so to speak, especially if their meaning wasn't originally understood.
# 4  
Old 04-07-2011
Thanks for the input. My function is having trouble with one particular parameter and the summary totals of that parameter. I will try to isolate the one parameter and totals in a simplified function so help will be optimized.

Thanks.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Hardware

Problematic RTL8188EE Wireless Network Adapter

Good Day All, There are numerous results when searching google on this issue, however, none seem to have a solution. I have read until my eyes bleed and banged my head on the table more than once! :) I am hoping to resolve this issue -- or at least have a decent workaround. It is a real... (13 Replies)
Discussion started by: RogerBaran
13 Replies

2. Solaris

How to access content of problematic rpool ?

Hi guys, I have a Solaris 10 x86 server with 2 physical disks. It had a ZFS rpool on the first disk c0t0d0s0. The server stopped booting with some error like "Cannot find bootfile". I booted with Solaris DVD and re-installed the operating system on the second disk with a different pool... (0 Replies)
Discussion started by: ARPcPro
0 Replies

3. Shell Programming and Scripting

Array output through a for loop problematic with multiple elements.

This code works perfect when using a machine with only one interface online. (Excluding the loopback of course) But when I have other interface up for vmware or a vpn the output gets mixed up. I know I had this working when I was just reading ip's from files so I know it is not a problem with... (8 Replies)
Discussion started by: Azrael
8 Replies

4. Shell Programming and Scripting

search file and group values with problematic tab

hi people; the similar topic is being opened in here and here but i have confused with following condition. so i wanted to open a seperate topic. from my file.txt:... ... ... 110105-16:04:04 192.168.1.1 7.1j Port_NODE_MODEL_M_1_8 stopfile=/tmp/10544... (0 Replies)
Discussion started by: gc_sw
0 Replies

5. Programming

Help me complete my code.

Ok, so I have done the 'mathematical part' just I am not sure where to put them in and how to get them to return answers. public class Main { public static void main(String args) { } //Part A. //1&2- Computes the sum andproduct of all of the elements of the array a. ... (5 Replies)
Discussion started by: HardyV2
5 Replies

6. Homework & Coursework Questions

Please help with the following fork code..with complete explanation

I have the following piece of codes. Please explain it to me in great detail how are these codes working. 1. #include <stdio.h> int main(){ int x; x=0; while (x<2 && fork()){ if (!fork()) execlp("echo","x++","x",0); x++; system("echo x+x"); } } 2. #include <stdio.h> int i;... (1 Reply)
Discussion started by: prakashabii
1 Replies

7. UNIX for Dummies Questions & Answers

BASH complete-filename & menu-complete together

Hi, Does anyone know how to make BASH provide a list of possible completions on the first tab, and then start cycling through the possibilites on the next tab? Right now this is what I have in my .bashrc: bind "set show-all-if-ambiguous on" bind \\C-o:menu-complete This allows... (0 Replies)
Discussion started by: Mithu
0 Replies
Login or Register to Ask a Question