This is good if you want to execute it:
However, this will not work because by default the shell doesn't look into the current directory to find the script, unless that the current directory is part of the $PATH.
If raspi-config.test contains a shebang run it as
or the full path if it doesn't have a shebang.
You can also run it issuing the shell you want to run it with at the current directory.
Many thanks,
very clear explanation on how to retrieve and copy the tagged code block.
Appreciate that.
------ Post updated at 09:51 PM ------
Aia
thanks .
Exactly what I need.
Appreciate your post.
------ Post updated at 10:16 PM ------
Sorry for additional post.
There is a code in original scrip which checks for "path" and will post a message to that effect and exit if script is NOT run from root.
That tells me indirectly then I am executing the script, that's good.
But when I add "sudo" I get same no response as before.
That tells me that the check for "root" is what causing the no response - that's also good.
Now I know where the issue is and can hopefully fix it without further assistance from forum.
Thanks for all the support I had received, appreciate it.
Perhaps next time things will be different since I now know this is just another typical "we/us" forum where form / format is more important than customer's issue.
can you help
i am merging 2 files together and saving to a third file with awk
and its working with this code
awk 'OFS="";NR==FNR{a=$0;next} {print a,"\n","\b",$0}' file1 file2 > file3the problem is in file3 when its saved
i get a small square at the start of every 2nd line (see picture)
... (6 Replies)
Hi ,
Script File Is Not Getting Saved This Are The Steps I Am Following For Saving And Executing A Script
1). vi ( To Open Vi Editor )
2). vi filename ( vi firstprog.ksh)
#!bin\kash
date
3) !wq :( Saving And Quit) When I Am Saving The Scrpit I Am Getting The Below... (1 Reply)
I am looking for a script where I need to open a file and modify the data like changing the parameters.Can anyone help me?
open a file software.rsp . It already contains following data.
parameter = false
threads=100
user= demf
The above should be changed to
paramter=true
thread= 133... (3 Replies)
I have just tried out Bluefish as an alternative to my regular text editor. If I save the modified preferences and reboot, the preferences have to be reentered again. Does anyone know which file the preferences are saved in?
The command
find / -mmin -5 | grep bluefish
yields zero hits.
Thanks... (2 Replies)
Guys i'm trying to save STDERR to a variable for a portion of my ksh script on solaris.
I know i can create redirects to files as such:
exec 4>/tmp/lava
print "This will be saved to /tmp/lava and not screen"; >&4
print "This will be seen on screen" >&2
I want to save the STDOUT of a... (4 Replies)
Our system produce logs when a script is run which may not be daily, the logs have a format: name_YYMMDD.log - both name and .log are consistent, date changes as per the day the script is run.
Is there a way of finding the last saved log? (20 Replies)
Hi all,
I have edited my sudoers file. I am using visudo command
I have added the following lines and saved the file.
I am saving the lines as :wq
But I am very amazed to see that these lines are not written in the sudoers file. I have retried the above process many times, when I... (0 Replies)
Hi,
Something funny is happening over here: when a regular user edits his cron-file (crontab -e) saves and exits vi the correct new cron-file gets installed and saved to disk. But if root does the same, vi saves it but if I then check the cron-file it has the previous contents! I did strace (==... (1 Reply)