Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Probably the dumbest question you've read in a while... Post 302586644 by karamazov91 on Tuesday 3rd of January 2012 12:40:05 AM
Old 01-03-2012
Power Probably the dumbest question you've read in a while...

So,
I realize that this will be considered a very stupid question, but I am very new to Linux (specifically Ubuntu) and I would just like some user input rather than blindly searching through many volumes (although I plan on doing that later).
So I've been going through and running some simple shell scripts, just testing the new OS out, and I recently ran into a tiny problem.
I wrote a super basic script to show the date and time through the shell, saved it in the text editor, and went to change the mode of it to executable through the script ($chmod x+ scriptname). But when I try this, the terminal sends back text saying that the process could not be completed, because there was no such file or directory, although I know for a fact that there is such a file, seeing as I was looking directly at the icon for it when I attempted this.
So anyway, the answer is probably pretty obvious I suppose, I just cannot think of it for the life of me. I will be looking around for it, but if someone could help me out with an explanation a little quicker, I would really appreciate the gesture.

-K
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Simple Bash Read File question

Hello all, I am trying to write a simple script that will parse through a text/properties file and check a couple of if statements. Here is what I have so far: FILENAME=$1 while read line do echo $line done < $FILENAME When I call ./simple.sh testfile.txt I recieve a file or... (7 Replies)
Discussion started by: lamagra
7 Replies

2. UNIX for Dummies Questions & Answers

Dumbest UNIX question ever

I haven't used UNIX is several years. But I became pretty good at it and love it. But I am rusty. I know this is basic, but how do you copy and paste? The user guide says what I remember, to highlight the text and the right-click. But it isn't working. I don't know if this will matter,... (2 Replies)
Discussion started by: arungavali
2 Replies

3. Shell Programming and Scripting

read line question

Here is my script: #!/bin/sh days=10 temporal_folder=/tmp/`basename $0`-$$ blacklist=bob.txt mkdir $temporal_folder find /home -type f -atime +$days | \ while read file do while read line do if ; then owner=`ls -l $file | awk ' { print $3 } '` basename $file >>... (8 Replies)
Discussion started by: tjay83
8 Replies

4. UNIX for Dummies Questions & Answers

The dumbest of dumb Text Search questions

I've done some due diligence by searching the forum for an answer, but to no avail. Excuse this most elementary of questions. Using grep I can search a file and derive the line number of the text I'm searching for. Now for the elementary part, how do I continue a search for a different search... (3 Replies)
Discussion started by: J.T.
3 Replies

5. Programming

Question about read writer lock

From <<Advanced Programming in the Unix>> section 11.6, it says: Although implementations vary, readerwriter locks usually block additional readers if a lock is already held in read mode and a thread is blocked trying to acquire the lock in write mode. This prevents a constant stream of readers... (5 Replies)
Discussion started by: robin.zhu
5 Replies

6. UNIX for Dummies Questions & Answers

Question with read command in ksh

Hi, I was writing a script to accept input using read. When I put !#/usr/bin/ksh in the beginning of the script, it accepts only 258 characters. And I remove it, it accepts more. I'm wondering what the difference is. Thanks in advance, (7 Replies)
Discussion started by: swmk18
7 Replies

7. Shell Programming and Scripting

Simple while read line loop question

#!/bin/bash count=1 while read line do if (($count > 4)); then awk -v var1="$count" '{printf "%3s%8s%11s%11s%11s\n",var1,$2,$3,$4,$5}' else echo $line fi count=$((count+1)) done < posre_sub.itp > test cat test INPUT: ; position restraints for... (3 Replies)
Discussion started by: origamisven
3 Replies

8. UNIX for Dummies Questions & Answers

read mail question

how do I save a email I just read to a new file? Thanks. (3 Replies)
Discussion started by: drew211
3 Replies

9. Shell Programming and Scripting

Defaults read/write question

OSX 10.9 How does "defaults" know where to look for .plists? To expand: defaults read com.apple.finder is located in ~/Library/Preferences but, defaults read com.apple.mail is located in ~/Library/Containers/com.apple.mail/Data/Library/Preferences/com.apple.mail.plist So my question... (0 Replies)
Discussion started by: sudo
0 Replies

10. Solaris

This must be the dumbest question ever posted -T5140 power button

I have a T5140 and cannot find the power switch -is there an on/off button? Good grief ! Thank you in advance. joe (3 Replies)
Discussion started by: joboy
3 Replies
XltWorking(3X)															    XltWorking(3X)

NAME
XltWorking - Convenience function to display a Working dialog, and update the bar graph in the dialog. SYNOPSIS
#include <Xlt/Xlt.h> Boolean XltWorking(widget, question, percent_done) Widget widget; String question; int percentdone; DESCRIPTION
XltWorking Creates a dialog containing a message string, a bar showing the percentage of the task complete, and an abort button. When called with a percent_done value of zero the dialog is managed, and a timer installed to update the bar every second. If question is not NULL, the message string in the dialog is set to this. When called with a percent_done of 100, the dialog is un-managed. If called with a percent_done of -1, only the message is changed. Any value between 0 and 100 will cause the bar graph to be updated the next time the timer fires, and processes any pending timer and X events. If the return value is True, the user has requested that the task should be aborted. widget The widget to wait for. question The message to display in the working dialog. Or NULL, meaning no change. percent_done The percentage of the task complete. 0 will cause the dialog to be managed. 100 will cause the dialog to be un-managed. -1 will update the question only. Any value between 0 and 100 will update the bar graph. RETURN VALUE
Boolean, if True the abort button was pushed, or the window was closed by the window manager. RELATED INFORMATION
XltWorking(3X)
All times are GMT -4. The time now is 11:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy