1.11M Members

Latest Posts in Linux and Unix

Re: in Linux and Unix
 
0
 

hi rubberman, thanks for the help!yes i installed it in dual boot mode, and all drivers are working fine in windows XP, i did not get any message to choose or adjust resolution while installing ubuntu 12.04, i am on another system right now, and don't know whats VGA drivers or hardware are on that system where is installed it.But i remember in Ubuntu's Appearence>display, there was only one resolution option ie 800x600.So what you recommend what to do now?

Re: in Linux and Unix
 
0
 

Hi "tapananand" i am new to posting of my script and learning just now, thanks for your comments, suggestions. your suggestions are some times scaring me.

Hi "Hiroshe & rubberman" i tried with your suggestions and it worked out for me.

Thank to all for helping me out

Re: in Linux and Unix
 
0
 

ITPT: Check out R1Soft (Idera Server Backup) or Crashplan. I don't know of any one piece of software that will do backups AND notify you of hardware changes on the client side, but if you want incremental or continuous backups scheduled from a central server, R1Soft is a good choice. It's cross-platform too, so you can use it on Windows or Linux.

Re: in Linux and Unix
 
0
 

Apt is what makes Ubuntu (and Debian) awesome! You should be able to get MySQL running with a single command:

sudo apt-get install mysql-server mysql-client

Unless there's a really good reason (like you need a specific version of mysql that isn't in the Ubuntu repository) I wouldn't install it any other way.

Good luck!

Re: in Linux and Unix
 
0
 

You could also just call the interpreter first. For instance, if we know that "$1" is a shell script:

/bin/sh $1

or

/bin/bash $1

I hope rohan1111 gets back to us about what the problem was. If the script really is essentially (as others have guessed) just:

chmod 744 $1
$1

...then I think you are all on the right track.

Re: in Linux and Unix
 
0
 

It's kind of bothering me now (I don't write bash scripts too too often, and they are generally for simple tasks). If we use ./$1 to execute the argument, then we are asumming that $1 is a relative path. Shouldn't there be a way to execute it given a path that may either be absolute or relative? I mean, we can start pulling out the heavier logic and check for a leading /, however I feel there should be a simpler way.

Re: in Linux and Unix
 
0
 

Good luck with that! This is not code for newbies. And if you use the specified configuration, my guess is that your system will be pwnd... Have fun!

in Linux and Unix
 
0
 

Hi DaniWeb,

I've been programming a litecoin clone for about two weeks now. I came to build the daemon to acquire a merkle hash, but It gives me this error.

Error: To use vizcoin, you must set a rpcpassword in the configuration file:
    /home/crypto/.vizcoin/vizcoin.conf
It is recommended you use the following random password:
rpcuser=******
rpcpassword=***************
(you do not need to remember this password)
If the file does not exist, create it with owner-readable-only file permissions

I have created the configuration file in the given directory, yet it doesn't accept the file. Any help is great. If someone can come up with a solution, there might be some vizcoin or ronpaulcoin in it for you!

Thanks,
Jack

Re: in Linux and Unix
 
0
 

I assume this is a shell script. When you execute the argument as a command, it has to be found in the system's PATH environment. Try ./$1 instead. That tells the shell to look for the command (argument) in the local directory, where you executed the ss4 command.

Re: in Linux and Unix
 
0
 

Use this python script

#!/usr/bin/env python
#-*-coding: utf8-*-
import argparse
import os

if __name__ == '__main__':
    parser = argparse.ArgumentParser(description='chmod files to mode 744')
    parser.add_argument('files', nargs='+', metavar='FILES')
    args = parser.parse_args()
    for filename in args.files:
        os.chmod(filename, 0744)
Re: in Linux and Unix
 
0
 

I'm taking a shot in the dark, because I'm not sure where line 6 is, but it looks like the problem is this: $1. That will not run the program. You should instead use ./$1.

Re: in Linux and Unix
 
0
 

first do this chmod +x scripName.sh
then run it using this ./scriptName.sh

Re: in Linux and Unix
 
0
 

First of all put code using code button. Secondly when putting code just put the code. What is this Usage and all. We don't need this. Your script is not clear at all. What is line 6? Nothing is clear. You'll struggle to get answers here if you post like this.

Re: in Linux and Unix
 
0
 

hi tapananand my sript is about adding permission for execution of script, instead of every time giving command "chmod 744 <filename>" for new shell scripts for adding execute permission, using this program i will send the file name as input that will store in $1 and it should change the permission and show the output.

My script is 'ss4'

---->

ss4

Usage: ss4 <filename>

chmod 744 $1

$1

----->

i execute this script like this

$ ./ss4 <filename>

after execution i am getting error as "./ss4: line 6: ss1: command not found"

Re: in Linux and Unix
 
0
 

Nothing is clear from your post - what is the script, how are you executing it??

Solved in Linux and Unix
 
0
 

ss4

Usage: ss4 <filename>

chmod 744 $1

$1

Hi this is my script , after executing it i am getting error as "./ss4: line 6: ss1: command not found"

HELP me.

Re: in Linux and Unix
 
0
 

cool stuff, thanks for letting me know about this! I'll definitely add a notice there after I have a look through it. Probably better to leave it til tomorrow, its after 1am and I'm too tired :) Thanks for all your help!

Linux and Unix Tag Cloud